Skip to content

Commit

Permalink
MyFrameMain: don't unset toolbar, just hide
Browse files Browse the repository at this point in the history
  • Loading branch information
bk138 committed Jun 25, 2024
1 parent 8ff872c commit 40bf260
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/gui/MyFrameMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ MyFrameMain::MyFrameMain(wxWindow* parent, int id, const wxString& title,
else
{
frame_main_toolbar->Show(false);
SetToolBar(NULL);
}


Expand Down Expand Up @@ -1564,11 +1563,11 @@ void MyFrameMain::view_toggletoolbar(wxCommandEvent &event)
frame_main_toolbar->EnableTool(wxID_STOP, enable); // disconnect
frame_main_toolbar->EnableTool(wxID_SAVE, enable); // screenshot

SetToolBar(frame_main_toolbar);
frame_main_toolbar->Show();
}
else
{
SetToolBar(NULL);
frame_main_toolbar->Hide();
}

// this does more than Layout() which only deals with sizers
Expand Down

0 comments on commit 40bf260

Please sign in to comment.