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.
This commit is contained in:
Edênis Freindorfer Azevedo 2019-07-03 19:58:13 -03:00 committed by Rafael Kitover
parent 030740ee34
commit 7569242f77
1 changed files with 1 additions and 1 deletions

View File

@ -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) {