diff --git a/osu.Game/Overlays/Music/MusicKeyBindingHandler.cs b/osu.Game/Overlays/Music/MusicKeyBindingHandler.cs
index 02196348ae..f5968614cd 100644
--- a/osu.Game/Overlays/Music/MusicKeyBindingHandler.cs
+++ b/osu.Game/Overlays/Music/MusicKeyBindingHandler.cs
@@ -39,10 +39,7 @@ namespace osu.Game.Overlays.Music
return true;
case GlobalAction.MusicNext:
- musicController.NextTrack(() =>
- {
- onScreenDisplay?.Display(new MusicActionToast("Next track"));
- }).RunTask();
+ musicController.NextTrack(() => onScreenDisplay?.Display(new MusicActionToast("Next track")));
return true;
@@ -59,7 +56,7 @@ namespace osu.Game.Overlays.Music
onScreenDisplay?.Display(new MusicActionToast("Previous track"));
break;
}
- }).RunTask();
+ });
return true;
}
diff --git a/osu.Game/Overlays/MusicController.cs b/osu.Game/Overlays/MusicController.cs
index a405be1b74..b568e4d02b 100644
--- a/osu.Game/Overlays/MusicController.cs
+++ b/osu.Game/Overlays/MusicController.cs
@@ -201,13 +201,8 @@ namespace osu.Game.Overlays
///
/// Play the previous track or restart the current track if it's current time below .
///
- ///
- /// Invoked when the operation has been performed successfully.
- /// The result isn't returned directly to the caller because
- /// the operation is scheduled and isn't performed immediately.
- ///
- /// A of the operation.
- public ScheduledDelegate PreviousTrack(Action onSuccess = null) => Schedule(() =>
+ /// Invoked when the operation has been performed successfully.
+ public void PreviousTrack(Action onSuccess = null) => Schedule(() =>
{
PreviousTrackResult res = prev();
if (res != PreviousTrackResult.None)
@@ -248,13 +243,9 @@ namespace osu.Game.Overlays
///
/// Play the next random or playlist track.
///
- ///
- /// Invoked when the operation has been performed successfully.
- /// The result isn't returned directly to the caller because
- /// the operation is scheduled and isn't performed immediately.
- ///
+ /// Invoked when the operation has been performed successfully.
/// A of the operation.
- public ScheduledDelegate NextTrack(Action onSuccess = null) => Schedule(() =>
+ public void NextTrack(Action onSuccess = null) => Schedule(() =>
{
bool res = next();
if (res)