mirror of
https://github.com/ppy/osu
synced 2024-12-14 10:57:41 +00:00
Keep attempting to pause gameplay while window not active
This commit is contained in:
parent
772471a6d8
commit
4436585aa4
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user