1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 21:12:55 +08:00

Keep attempting to pause gameplay while window not active

This commit is contained in:
Salman Ahmed 2021-02-19 09:35:29 +03:00
parent 772471a6d8
commit 4436585aa4

View File

@ -427,11 +427,16 @@ namespace osu.Game.Screens.Play
private void updatePauseOnFocusLostState()
{
if (!PauseOnFocusLost || breakTracker.IsBreakTime.Value)
if (!PauseOnFocusLost || DrawableRuleset.HasReplayLoaded.Value || breakTracker.IsBreakTime.Value)
return;
if (gameActive.Value == false)
{
if (canPause)
Pause();
else
Scheduler.AddDelayed(updatePauseOnFocusLostState, 200);
}
}
private IBeatmap loadPlayableBeatmap()