From fa9a0beec72f180a5226bb2f1203276dc7f37a64 Mon Sep 17 00:00:00 2001 From: YuSanka Date: Fri, 21 Jan 2022 11:16:58 +0100 Subject: [PATCH] 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 --- src/slic3r/GUI/GUI_App.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/slic3r/GUI/GUI_App.cpp b/src/slic3r/GUI/GUI_App.cpp index 665870815..e60910908 100644 --- a/src/slic3r/GUI/GUI_App.cpp +++ b/src/slic3r/GUI/GUI_App.cpp @@ -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();