mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2024-11-08 01:56:05 -05:00
IsMaximized() return is ambiguous for OSX full-screen vs. filled-screen; use Y position instead..
This commit is contained in:
parent
066d634d24
commit
5e4f5d7d96
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user