mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 15:16:38 +09:00
Keep attempting to pause gameplay while window not active
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user