[LyX/master] Fix thinko

Richard Kimberly Heck rikiheck at lyx.org
Tue Dec 15 04:16:04 UTC 2020


commit 5e6c5f407a9a615f02c1af9c676fe7ed0aef7bbb
Author: Richard Kimberly Heck <rikiheck at lyx.org>
Date:   Mon Dec 14 23:33:51 2020 -0500

    Fix thinko
---
 src/insets/InsetCollapsible.cpp |    2 --
 src/insets/InsetERT.cpp         |    2 --
 src/insets/InsetListings.cpp    |    2 --
 3 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/src/insets/InsetCollapsible.cpp b/src/insets/InsetCollapsible.cpp
index da2269d..f179afe 100644
--- a/src/insets/InsetCollapsible.cpp
+++ b/src/insets/InsetCollapsible.cpp
@@ -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)
diff --git a/src/insets/InsetERT.cpp b/src/insets/InsetERT.cpp
index f0c1f17..559fef2 100644
--- a/src/insets/InsetERT.cpp
+++ b/src/insets/InsetERT.cpp
@@ -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"));
diff --git a/src/insets/InsetListings.cpp b/src/insets/InsetListings.cpp
index e11de52..51763d4 100644
--- a/src/insets/InsetListings.cpp
+++ b/src/insets/InsetListings.cpp
@@ -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"));


More information about the lyx-cvs mailing list