Skip to content

Commit

Permalink
MyFrameMain: sync fullscreen toolbar button to internal state
Browse files Browse the repository at this point in the history
  • Loading branch information
bk138 committed Jan 7, 2024
1 parent def08b7 commit f7512b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/MyFrameMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit f7512b2

Please sign in to comment.