[LyX/master] Allow toggling of Zoom elements without buffer

Scott Kostyshak skostysh at lyx.org
Mon Dec 27 18:15:42 UTC 2021


commit 9ffca92930443a31d743380ffd5df4ce1a619e83
Author: Scott Kostyshak <skostysh at lyx.org>
Date:   Mon Dec 27 13:40:56 2021 -0500

    Allow toggling of Zoom elements without buffer
    
    The elements are shown without a buffer so it's nice to be able to
    toggle without one as well.
---
 src/frontends/qt/GuiView.cpp |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/src/frontends/qt/GuiView.cpp b/src/frontends/qt/GuiView.cpp
index b7a60fa..cce87e5 100644
--- a/src/frontends/qt/GuiView.cpp
+++ b/src/frontends/qt/GuiView.cpp
@@ -2356,10 +2356,8 @@ bool GuiView::getStatus(FuncRequest const & cmd, FuncStatus & flag)
 
 	case LFUN_UI_TOGGLE:
 		if (cmd.argument() == "zoom") {
-			enable = doc_buffer;
 			flag.setOnOff(zoom_value_ ? zoom_value_->isVisible() : false);
 		} else if (cmd.argument() == "zoomslider") {
-			enable = doc_buffer;
 			flag.setOnOff(zoom_slider_ ? zoom_slider_->isVisible() : false);
 		} else
 			flag.setOnOff(isFullScreen());


More information about the lyx-cvs mailing list