mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 06:57:36 -06:00
FIX:fixed fixed crash when started on macos
Change-Id: Ic09a1fb61f68dffabdaf61b4c9e88bac62094a52
This commit is contained in:
parent
f245e8c0c0
commit
1c919977b1
2 changed files with 9 additions and 2 deletions
|
@ -476,8 +476,14 @@ DPIFrame(NULL, wxID_ANY, "", wxDefaultPosition, wxDefaultSize, BORDERLESS_FRAME_
|
|||
});
|
||||
#endif
|
||||
|
||||
wxGetApp().persist_window_geometry(this, true);
|
||||
wxGetApp().persist_window_geometry(&m_settings_dialog, true);
|
||||
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 (?)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue