]> git.lyx.org Git - lyx.git/commitdiff
Fix thinko
authorRichard Kimberly Heck <rikiheck@lyx.org>
Tue, 15 Dec 2020 04:33:51 +0000 (23:33 -0500)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Tue, 15 Dec 2020 04:40:28 +0000 (23:40 -0500)
src/insets/InsetCollapsible.cpp
src/insets/InsetERT.cpp
src/insets/InsetListings.cpp

index da2269d41b2d39e064fe704defeb6d40121a8c1f..f179afe72f54bd5f2a57fc5ff44c9ac7083d31e6 100644 (file)
@@ -696,8 +696,6 @@ docstring const InsetCollapsible::buttonLabel(BufferView const & bv) const
 {
        // U+1F512 LOCK
        docstring const locked = tempfile_ ? docstring(1, 0x1F512) : docstring();
-       if (decoration() == InsetDecoration::MINIMALISTIC)
-               return locked;
        // indicate changed content in label (#8645)
        // ✎ U+270E LOWER RIGHT PENCIL
        docstring const indicator = (isChanged() && geometry(bv) == ButtonOnly)
index f0c1f17771726cdfee294a3ad5ef0d5df7e3e236..559fef2b092ea467f745beae6fd5408bfe912842 100644 (file)
@@ -171,8 +171,6 @@ docstring const InsetERT::buttonLabel(BufferView const & bv) const
 {
        // U+1F512 LOCK
        docstring const locked = tempfile_ ? docstring(1, 0x1F512) : docstring();
-       if (decoration() == InsetDecoration::MINIMALISTIC)
-               return locked;
        if (decoration() == InsetDecoration::CLASSIC)
                return locked + (isOpen(bv) ? _("ERT") : getNewLabel(_("ERT")));
        return locked + getNewLabel(_("ERT"));
index e11de52af98a3eb9974c15be6b3f3d458f7a35a3..51763d40afda5e378cc070123c3c899fca33a656 100644 (file)
@@ -605,8 +605,6 @@ docstring const InsetListings::buttonLabel(BufferView const & bv) const
 {
        // FIXME UNICODE
        docstring const locked = tempfile_ ? docstring(1, 0x1F512) : docstring();
-       if (decoration() == InsetDecoration::MINIMALISTIC)
-               return locked;
        if (decoration() == InsetDecoration::CLASSIC)
                return locked + (isOpen(bv) ? _("Listing") : getNewLabel(_("Listing")));
        return locked + getNewLabel(_("Listing"));