No need to display contents of the branch when it is open.

Thanks to Vincent for noticing.
This commit is contained in:
Richard Heck 2016-08-02 16:33:18 -04:00
parent 8ce8f56713
commit f1b748e42b
2 changed files with 5 additions and 2 deletions

BIN
po/ia.gmo

Binary file not shown.

View File

@ -64,7 +64,7 @@ void InsetBranch::read(Lexer & lex)
}
docstring InsetBranch::toolTip(BufferView const &, int, int) const
docstring InsetBranch::toolTip(BufferView const & bv, int, int) const
{
docstring const masterstatus = isBranchSelected() ?
_("active") : _("non-active");
@ -87,7 +87,10 @@ docstring InsetBranch::toolTip(BufferView const &, int, int) const
docstring const heading =
support::bformat(_("Branch Name: %1$s\nBranch Status: %2$s\nInset Status: %3$s"),
params_.branch, status, onoff);
return toolTipText(heading);
if (isOpen(bv))
return heading;
return toolTipText(heading + from_ascii("\n"));
}