mirror of
https://github.com/ppy/osu.git
synced 2025-03-28 01:47:33 +08:00
Do not pause a running replay if the window is not focused.
This commit is contained in:
parent
5d818620c9
commit
57b9ed0f54
@ -150,7 +150,7 @@ namespace osu.Game.Screens.Play
|
|||||||
FramedClock = offsetClock,
|
FramedClock = offsetClock,
|
||||||
OnRetry = Restart,
|
OnRetry = Restart,
|
||||||
OnQuit = Exit,
|
OnQuit = Exit,
|
||||||
CheckCanPause = () => ValidForResume && !HasFailed,
|
CheckCanPause = () => ValidForResume && !HasFailed && !HitRenderer.HasReplayLoaded,
|
||||||
Retries = RestartCount,
|
Retries = RestartCount,
|
||||||
OnPause = () => {
|
OnPause = () => {
|
||||||
hudOverlay.KeyCounter.IsCounting = pauseContainer.IsPaused;
|
hudOverlay.KeyCounter.IsCounting = pauseContainer.IsPaused;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user