ENH: bootup: add slow bootup mode to avoid some possible crash on seldom computers

Change-Id: Ia7a05082eee32dcc8a2ed9ca47cf13287ee2aed9
This commit is contained in:
lane.wei 2022-11-18 14:36:34 +08:00 committed by Lane.Wei
parent 2aedc84586
commit d40f9b24ed
3 changed files with 19 additions and 12 deletions

View file

@ -5036,7 +5036,7 @@ void Plater::priv::set_current_panel(wxPanel* panel, bool no_slice)
}
wxPanel* old_panel = current_panel;
#if BBL_HAS_FIRST_PAGE
//#if BBL_HAS_FIRST_PAGE
if (!old_panel) {
//BBS: only switch to the first panel when visible
panel->Show();
@ -5044,7 +5044,7 @@ void Plater::priv::set_current_panel(wxPanel* panel, bool no_slice)
if (!panel->IsShownOnScreen())
return;
}
#endif
//#endif
current_panel = panel;
//BBS: add the collapse logic
if (current_panel == preview && q->only_gcode_mode()) {