Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DolphinQt: Fix window focus from unpausing after a manual pause. #11211

Conversation

jordan-woyak
Copy link
Member

Now the "Pause on Focus Loss" setting will not unpause unless it actually performed the pause.
This fixes issue: https://bugs.dolphin-emu.org/issues/13071

I've purposely removed the Config::Get(Config::MAIN_PAUSE_ON_FOCUS_LOST) check in the WindowActivate event to produce the following desirable behavior:

The user notices the emulator is pausing on focus loss but they don't want this.
They open the config (causing the emulator to automatically pause).
They disable the "Pause on Focus Loss" setting and close the config window.
The emulator automatically resumes, despite the setting now being disabled, because it was automatically paused previously.
This is what they want. They want the game to be running now.

Copy link
Contributor

@Pokechu22 Pokechu22 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested. Looks good to me.

@AdmiralCurtiss AdmiralCurtiss merged commit 8001535 into dolphin-emu:master Oct 28, 2022
@jordan-woyak jordan-woyak deleted the fix-focus-resume-after-manual-pause branch October 29, 2022 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants