Skip to content

Commit

Permalink
Follow-up to 1dffc40 - Save app_config every time a "restore_win_posi…
Browse files Browse the repository at this point in the history
…tion" is changed

Fix for cases witch are described in #2939 (comment)
  • Loading branch information
YuSanka committed Jan 21, 2022
1 parent d2664ea commit fa9a0be
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/slic3r/GUI/GUI_App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit fa9a0be

Please sign in to comment.