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:
parent
772471a6d8
commit
4436585aa4
@ -427,11 +427,16 @@ namespace osu.Game.Screens.Play
|
|||||||
|
|
||||||
private void updatePauseOnFocusLostState()
|
private void updatePauseOnFocusLostState()
|
||||||
{
|
{
|
||||||
if (!PauseOnFocusLost || breakTracker.IsBreakTime.Value)
|
if (!PauseOnFocusLost || DrawableRuleset.HasReplayLoaded.Value || breakTracker.IsBreakTime.Value)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (gameActive.Value == false)
|
if (gameActive.Value == false)
|
||||||
Pause();
|
{
|
||||||
|
if (canPause)
|
||||||
|
Pause();
|
||||||
|
else
|
||||||
|
Scheduler.AddDelayed(updatePauseOnFocusLostState, 200);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private IBeatmap loadPlayableBeatmap()
|
private IBeatmap loadPlayableBeatmap()
|
||||||
|
Loading…
Reference in New Issue
Block a user