Don't save maximized window state/position on OSX

This commit is contained in:
Charles J. Cliffe 2017-01-18 20:13:25 -05:00
parent 9ecf29d3b4
commit 066d634d24

View File

@ -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());