Moved delaying resuming to Player

This commit is contained in:
DrabWeb
2017-01-30 09:06:26 -04:00
parent af8294f02c
commit 740f6e5595
2 changed files with 10 additions and 3 deletions

View File

@ -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