FIX: [STUDIO-1589] restore pos of mainframe before show
Change-Id: I73f73597a939f8e65ff8cc5ce9a98741f62c48c3
This commit is contained in:
parent
c3398a089c
commit
a4cffa3c87
|
@ -476,15 +476,6 @@ DPIFrame(NULL, wxID_ANY, "", wxDefaultPosition, wxDefaultSize, BORDERLESS_FRAME_
|
||||||
});
|
});
|
||||||
#endif
|
#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;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
update_ui_from_settings(); // FIXME (?)
|
update_ui_from_settings(); // FIXME (?)
|
||||||
|
|
||||||
if (m_plater != nullptr) {
|
if (m_plater != nullptr) {
|
||||||
|
@ -565,6 +556,8 @@ DPIFrame(NULL, wxID_ANY, "", wxDefaultPosition, wxDefaultSize, BORDERLESS_FRAME_
|
||||||
wxGetApp().UpdateDarkUIWin(this);
|
wxGetApp().UpdateDarkUIWin(this);
|
||||||
#endif // _MSW_DARK_MODE
|
#endif // _MSW_DARK_MODE
|
||||||
|
|
||||||
|
wxGetApp().persist_window_geometry(this, true);
|
||||||
|
wxGetApp().persist_window_geometry(&m_settings_dialog, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __WIN32__
|
#ifdef __WIN32__
|
||||||
|
|
|
@ -83,7 +83,6 @@ protected:
|
||||||
|
|
||||||
class MainFrame : public DPIFrame
|
class MainFrame : public DPIFrame
|
||||||
{
|
{
|
||||||
bool m_reset_position{false};
|
|
||||||
bool m_loaded {false};
|
bool m_loaded {false};
|
||||||
wxTimer* m_reset_title_text_colour_timer{ nullptr };
|
wxTimer* m_reset_title_text_colour_timer{ nullptr };
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue