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:
YuSanka 2022-01-21 11:16:58 +01:00
parent d2664ea295
commit fa9a0beec7

View File

@ -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();