Fix instant pausing when game becomes inactive

Resolves #4685.
This commit is contained in:
Dean Herbert
2019-04-30 21:52:49 +09:00
parent f05471aa18
commit b9a39fb788
2 changed files with 26 additions and 2 deletions

View File

@ -393,8 +393,8 @@ namespace osu.Game.Screens.Play
base.Update();
// eagerly pause when we lose window focus (if we are locally playing).
if (PauseOnFocusLost && !Game.IsActive.Value)
Pause();
if (PauseOnFocusLost)
HUDOverlay.HoldToQuit.GameInactive = !Game.IsActive.Value;
}
public void Pause()