diff --git a/src/AppFrame.cpp b/src/AppFrame.cpp index 4c47dce..05b9f4d 100644 --- a/src/AppFrame.cpp +++ b/src/AppFrame.cpp @@ -1321,8 +1321,15 @@ void AppFrame::OnClose(wxCloseEvent& event) { return; } +#ifdef __APPLE__ + if (!this->IsMaximized()) { + wxGetApp().getConfig()->setWindow(this->GetPosition(), this->GetClientSize()); + wxGetApp().getConfig()->setWindowMaximized(this->IsMaximized()); + } +#else wxGetApp().getConfig()->setWindow(this->GetPosition(), this->GetClientSize()); wxGetApp().getConfig()->setWindowMaximized(this->IsMaximized()); +#endif wxGetApp().getConfig()->setTheme(ThemeMgr::mgr.getTheme()); wxGetApp().getConfig()->setFontScale(GLFont::getScale()); wxGetApp().getConfig()->setSnap(wxGetApp().getFrequencySnap());