mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-21 23:09:40 +00:00
* InsetBranch.cpp:
- indicate branch status in the tooltip. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29197 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
6974c65ed4
commit
1c738a37fb
@ -29,6 +29,7 @@
|
||||
|
||||
#include "support/debug.h"
|
||||
#include "support/gettext.h"
|
||||
#include "support/lstrings.h"
|
||||
|
||||
#include "frontends/Application.h"
|
||||
|
||||
@ -72,7 +73,11 @@ void InsetBranch::read(Lexer & lex)
|
||||
|
||||
docstring InsetBranch::toolTip(BufferView const &, int, int) const
|
||||
{
|
||||
return _("Branch: ") + params_.branch;
|
||||
docstring const status = isBranchSelected() ?
|
||||
_("active") : _("non-active");
|
||||
return support::bformat(_("Branch (%1$s): %2$s"),
|
||||
status,
|
||||
params_.branch);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user