Skip to content
Permalink
Browse files

Fix pause behaviour with `Pause when inactive`.

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 3, 2019
1 parent 030740e commit 7569242f772cc7a3135ca79cdbb1bc1956f9f489
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/wx/wxvbam.cpp
@@ -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) {

0 comments on commit 7569242

Please sign in to comment.
You can’t perform that action at this time.