From: Richard Heck Date: Tue, 2 Aug 2016 20:33:18 +0000 (-0400) Subject: No need to display contents of the branch when it is open. X-Git-Tag: 2.3.0alpha1~1162 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=f1b748e42be0db754d9a66217a4cdfb1f9744184;p=features.git No need to display contents of the branch when it is open. Thanks to Vincent for noticing. --- diff --git a/po/ia.gmo b/po/ia.gmo index eddcba4b7b..80eb568c04 100644 Binary files a/po/ia.gmo and b/po/ia.gmo differ diff --git a/src/insets/InsetBranch.cpp b/src/insets/InsetBranch.cpp index 8f4b77b003..073072b47d 100644 --- a/src/insets/InsetBranch.cpp +++ b/src/insets/InsetBranch.cpp @@ -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")); }