1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-31 02:30:06 +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
Unverified
parent 772471a6d8
commit 4436585aa4
+7 -2
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)
Pause();
{
if (canPause)
Pause();
else
Scheduler.AddDelayed(updatePauseOnFocusLostState, 200);
}
}
private IBeatmap loadPlayableBeatmap()