1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-13 08:24:27 +00: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:
enricoturri1966
2020-06-29 15:23:24 +02:00
parent c10f6a622d
commit 6a7efbbf96
3 changed files with 13 additions and 13 deletions
+2 -2
View File
@@ -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)