mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 23:24:04 +09:00
Moved delaying resuming to Player
This commit is contained in:
@ -38,7 +38,7 @@ namespace osu.Game.Overlays.Pause
|
||||
case Key.Escape:
|
||||
if (State == Visibility.Hidden) return false;
|
||||
Hide();
|
||||
Task.Delay(transitionDuration * 2).ContinueWith(task => OnResume?.Invoke());
|
||||
OnResume?.Invoke();
|
||||
return true;
|
||||
}
|
||||
return base.OnKeyDown(state, args);
|
||||
@ -119,7 +119,7 @@ namespace osu.Game.Overlays.Pause
|
||||
Action = delegate
|
||||
{
|
||||
Hide();
|
||||
Task.Delay(transitionDuration * 2).ContinueWith(task => OnResume?.Invoke());
|
||||
OnResume?.Invoke();
|
||||
}
|
||||
},
|
||||
new RetryButton
|
||||
|
Reference in New Issue
Block a user