mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
ENABLE_LAYOUT_NO_RESTART -> Added an extra sizer to Mainframe to avoid hiding the entire application when switching the layout type
This commit is contained in:
parent
c10f6a622d
commit
6a7efbbf96
3 changed files with 13 additions and 13 deletions
|
@ -1080,10 +1080,10 @@ void GUI_App::add_config_menu(wxMenuBar *menu)
|
|||
}
|
||||
#if ENABLE_LAYOUT_NO_RESTART
|
||||
if (app_layout_changed) {
|
||||
mainframe->Hide();
|
||||
mainframe->GetSizer()->Hide((size_t)0);
|
||||
mainframe->update_layout();
|
||||
mainframe->select_tab(0);
|
||||
mainframe->Show();
|
||||
mainframe->GetSizer()->Show((size_t)0);
|
||||
}
|
||||
#else
|
||||
if (recreate_app)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue