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)
Pause();
{
if (canPause)
Pause();
else
Scheduler.AddDelayed(updatePauseOnFocusLostState, 200);
}
}
private IBeatmap loadPlayableBeatmap()