Follow-up to 1dffc40f
- Save app_config every time a "restore_win_position" is changed
Fix for cases witch are described in https://github.com/prusa3d/PrusaSlicer/issues/2939#issuecomment-1017730712
This commit is contained in:
parent
d2664ea295
commit
fa9a0beec7
@ -1347,6 +1347,7 @@ bool GUI_App::on_init_inner()
|
||||
app_config->set("restore_win_position", "0");
|
||||
else if (answer == wxID_NO)
|
||||
app_config->set("restore_win_position", "1");
|
||||
app_config->save();
|
||||
}
|
||||
|
||||
return true;
|
||||
@ -2992,6 +2993,7 @@ void GUI_App::window_pos_restore(wxTopLevelWindow* window, const std::string &na
|
||||
|
||||
// revert "restore_win_position" value if application wasn't crashed
|
||||
app_config->set("restore_win_position", "1");
|
||||
app_config->save();
|
||||
}
|
||||
else
|
||||
window->CenterOnScreen();
|
||||
|
Loading…
Reference in New Issue
Block a user