diff --git a/src/slic3r/GUI/MainFrame.cpp b/src/slic3r/GUI/MainFrame.cpp index bbe99b522..0ea84b1ab 100644 --- a/src/slic3r/GUI/MainFrame.cpp +++ b/src/slic3r/GUI/MainFrame.cpp @@ -474,16 +474,7 @@ DPIFrame(NULL, wxID_ANY, "", wxDefaultPosition, wxDefaultSize, BORDERLESS_FRAME_ wxGetApp().plater()->get_current_canvas3D()->request_extra_frame(); event.Skip(); }); -#endif - - Bind(wxEVT_SHOW, [this](auto& e) { - if (!m_reset_position) { - wxGetApp().persist_window_geometry(this, true); - wxGetApp().persist_window_geometry(&m_settings_dialog, true); - m_reset_position = true; - } - }); - +#endif update_ui_from_settings(); // FIXME (?) @@ -565,6 +556,8 @@ DPIFrame(NULL, wxID_ANY, "", wxDefaultPosition, wxDefaultSize, BORDERLESS_FRAME_ wxGetApp().UpdateDarkUIWin(this); #endif // _MSW_DARK_MODE + wxGetApp().persist_window_geometry(this, true); + wxGetApp().persist_window_geometry(&m_settings_dialog, true); } #ifdef __WIN32__ diff --git a/src/slic3r/GUI/MainFrame.hpp b/src/slic3r/GUI/MainFrame.hpp index 3c6fda6f0..c30aff094 100644 --- a/src/slic3r/GUI/MainFrame.hpp +++ b/src/slic3r/GUI/MainFrame.hpp @@ -83,7 +83,6 @@ protected: class MainFrame : public DPIFrame { - bool m_reset_position{false}; bool m_loaded {false}; wxTimer* m_reset_title_text_colour_timer{ nullptr };