Skip to content

Commit

Permalink
Fix pause behaviour with Pause when inactive.
Browse files Browse the repository at this point in the history
If the user pauses with the keybinding or the menu `Emulation` > `Pause`
while `Pause when inactive` is enabled, the game should not unpause when
the window receives focus again. It should wait for the user to trigger
the manual unpause.

- Fix #460.
  • Loading branch information
denisfa authored and rkitover committed Jul 4, 2019
1 parent 030740e commit 7569242
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wx/wxvbam.cpp
Expand Up @@ -732,7 +732,7 @@ void MainFrame::OnActivate(wxActivateEvent& event)
panel->SetFocus();

if (pauseWhenInactive) {
if (panel && focused) {
if (panel && focused && !paused) {
panel->Resume();
}
else if (panel && !focused) {
Expand Down

0 comments on commit 7569242

Please sign in to comment.