Skip to content

Commit

Permalink
MyFrameMain: hide toolbar labels in fullscreen mode
Browse files Browse the repository at this point in the history
  • Loading branch information
bk138 committed Jun 24, 2024
1 parent 4f7e9e3 commit 4a474e2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/MyFrameMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,8 @@ void MyFrameMain::onFullScreenChanged(bool isFullScreen) {
// hide bookmarks and discovered servers
show_bookmarks = show_discovered = false;
splitwinlayout();
// hide toolbar labels
GetToolBar()->SetWindowStyle(GetToolBar()->GetWindowStyle() & ~wxTB_TEXT);
} else {
// untick menu item
frame_main_menubar->Check(ID_FULLSCREEN, false);
Expand All @@ -678,6 +680,8 @@ void MyFrameMain::onFullScreenChanged(bool isFullScreen) {
wxConfigBase::Get()->Read(K_SHOWDISCOVERED, &show_discovered, V_SHOWDISCOVERED);
wxConfigBase::Get()->Read(K_SHOWBOOKMARKS, &show_bookmarks, V_SHOWBOOKMARKS);
splitwinlayout();
// show toolbar labels
GetToolBar()->SetWindowStyle(GetToolBar()->GetWindowStyle() | wxTB_TEXT);
}
}

Expand Down

0 comments on commit 4a474e2

Please sign in to comment.