From f7512b2b805c37d7a795c78b1e2ca0e5ae5b52e8 Mon Sep 17 00:00:00 2001 From: Christian Beier Date: Fri, 16 Jun 2023 23:59:48 +0200 Subject: [PATCH] MyFrameMain: sync fullscreen toolbar button to internal state --- src/gui/MyFrameMain.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/MyFrameMain.cpp b/src/gui/MyFrameMain.cpp index ac2f6311..040b3c18 100644 --- a/src/gui/MyFrameMain.cpp +++ b/src/gui/MyFrameMain.cpp @@ -653,6 +653,7 @@ void MyFrameMain::onFullScreenChanged(bool isFullScreen) { if (show_fullscreen) { // tick menu item frame_main_menubar->Check(ID_FULLSCREEN, true); + GetToolBar()->ToggleTool(ID_FULLSCREEN, true); #ifndef __WXMAC__ // hide menu frame_main_menubar->Show(false); @@ -663,6 +664,7 @@ void MyFrameMain::onFullScreenChanged(bool isFullScreen) { } else { // untick menu item frame_main_menubar->Check(ID_FULLSCREEN, false); + GetToolBar()->ToggleTool(ID_FULLSCREEN, false); #ifndef __WXMAC__ // show menu frame_main_menubar->Show(true);