mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2026-06-01 21:54:39 -04:00
IsMaximized() return is ambiguous for OSX full-screen vs. filled-screen; use Y position instead..
This commit is contained in:
+1
-1
@@ -1322,7 +1322,7 @@ void AppFrame::OnClose(wxCloseEvent& event) {
|
||||
}
|
||||
|
||||
#ifdef __APPLE__
|
||||
if (!this->IsMaximized()) {
|
||||
if (this->GetPosition().y > 0) {
|
||||
wxGetApp().getConfig()->setWindow(this->GetPosition(), this->GetClientSize());
|
||||
wxGetApp().getConfig()->setWindowMaximized(this->IsMaximized());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user