mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-15 23:15:54 +08:00
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");
|
app_config->set("restore_win_position", "0");
|
||||||
else if (answer == wxID_NO)
|
else if (answer == wxID_NO)
|
||||||
app_config->set("restore_win_position", "1");
|
app_config->set("restore_win_position", "1");
|
||||||
|
app_config->save();
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
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
|
// revert "restore_win_position" value if application wasn't crashed
|
||||||
app_config->set("restore_win_position", "1");
|
app_config->set("restore_win_position", "1");
|
||||||
|
app_config->save();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
window->CenterOnScreen();
|
window->CenterOnScreen();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user