Don't save maximized window state/position on OSX
This commit is contained in:
parent
9ecf29d3b4
commit
066d634d24
|
@ -1321,8 +1321,15 @@ void AppFrame::OnClose(wxCloseEvent& event) {
|
||||||
return;
|
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()->setWindow(this->GetPosition(), this->GetClientSize());
|
||||||
wxGetApp().getConfig()->setWindowMaximized(this->IsMaximized());
|
wxGetApp().getConfig()->setWindowMaximized(this->IsMaximized());
|
||||||
|
#endif
|
||||||
wxGetApp().getConfig()->setTheme(ThemeMgr::mgr.getTheme());
|
wxGetApp().getConfig()->setTheme(ThemeMgr::mgr.getTheme());
|
||||||
wxGetApp().getConfig()->setFontScale(GLFont::getScale());
|
wxGetApp().getConfig()->setFontScale(GLFont::getScale());
|
||||||
wxGetApp().getConfig()->setSnap(wxGetApp().getFrequencySnap());
|
wxGetApp().getConfig()->setSnap(wxGetApp().getFrequencySnap());
|
||||||
|
|
Loading…
Reference in New Issue