Do not pause while opening configuration windows.

The only configuration that we cannot change while playing is the sound
driver. All the others should be changeable without any major issues.
This commit is contained in:
Edênis Freindorfer Azevedo 2020-02-18 17:51:18 -03:00 committed by Rafael Kitover
parent 54335dc67c
commit 994726dd8d
1 changed files with 5 additions and 5 deletions

View File

@ -1110,10 +1110,10 @@ void MainFrame::MenuPopped(wxMenuEvent& evt)
if (popped)
panel->ShowPointer();
if (menus_opened)
panel->Pause();
else if (!IsPaused())
panel->Resume();
//if (menus_opened)
// panel->Pause();
//else if (!IsPaused())
// panel->Resume();
}
void MainFrame::SetMenusOpened(bool state)
@ -1155,7 +1155,7 @@ void MainFrame::StartModal()
// pointer when dialog popped up
// it will auto-hide again once game resumes
panel->ShowPointer();
panel->Pause();
//panel->Pause();
++dialog_opened;
}