Only show pencil change mark when inset is collapsed

This commit is contained in:
Jean-Marc Lasgouttes 2020-01-13 15:23:32 +01:00
parent dd60e2d9f4
commit b0371714a0

View File

@ -661,7 +661,8 @@ docstring const InsetCollapsible::buttonLabel(BufferView const & bv) const
{ {
// indicate changed content in label (#8645) // indicate changed content in label (#8645)
// ✎ U+270E LOWER RIGHT PENCIL // ✎ U+270E LOWER RIGHT PENCIL
docstring indicator = isChanged() ? docstring(1, 0x270E) : docstring(); docstring const indicator = (isChanged() && geometry(bv) == ButtonOnly)
? docstring(1, 0x270E) : docstring();
InsetLayout const & il = getLayout(); InsetLayout const & il = getLayout();
docstring const label = getLabel(); docstring const label = getLabel();
if (!il.contentaslabel() || geometry(bv) != ButtonOnly) if (!il.contentaslabel() || geometry(bv) != ButtonOnly)