Skip to content

Commit

Permalink
Do not pause while opening configuration windows.
Browse files Browse the repository at this point in the history
The only configuration that we cannot change while playing is the sound
driver. All the others should be changeable without any major issues.
  • Loading branch information
denisfa authored and rkitover committed Mar 18, 2020
1 parent 54335dc commit 994726d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/wx/wxvbam.cpp
Expand Up @@ -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)
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 994726d

Please sign in to comment.