Skip to content

Commit

Permalink
Fix #4904 DarkRadiant's main window now respects the stored size and …
Browse files Browse the repository at this point in the history
…position plus the monitor it was displayed on at shutdown time.
  • Loading branch information
codereader committed Mar 11, 2019
1 parent 712f0d4 commit 653a9f7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions radiant/ui/mainframe/MainFrame.cpp
Expand Up @@ -365,14 +365,13 @@ void MainFrame::restoreWindowPosition()
_windowPosition.fitToScreen(wxutil::MultiMonitor::getMonitor(startMonitor), 0.8f, 0.8f);
}

// Connect the tracker which will also apply the stored size/position
_windowPosition.connect(_topLevelWindow);

if (isMaximised)
{
_topLevelWindow->Maximize(true);
}
else
{
_windowPosition.connect(_topLevelWindow);
}
}

wxToolBar* MainFrame::getToolbar(IMainFrame::Toolbar type)
Expand Down

0 comments on commit 653a9f7

Please sign in to comment.