mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 15:44:04 +09:00
Merge branch 'fix-music-controller-regressed' into fix-toggle-pause-state
This commit is contained in:
@ -12,7 +12,7 @@ using osu.Game.Overlays.OSD;
|
||||
namespace osu.Game.Overlays.Music
|
||||
{
|
||||
/// <summary>
|
||||
/// Handles <see cref="GlobalAction"/> relating to music playback, and displays a <see cref="Toast"/> via the cached <see cref="OnScreenDisplay"/> accordingly.
|
||||
/// Handles <see cref="GlobalAction"/>s related to music playback, and displays <see cref="Toast"/>s via the global <see cref="OnScreenDisplay"/> accordingly.
|
||||
/// </summary>
|
||||
public class MusicKeyBindingHandler : Component, IKeyBindingHandler<GlobalAction>
|
||||
{
|
||||
@ -41,10 +41,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;
|
||||
|
||||
@ -61,7 +58,7 @@ namespace osu.Game.Overlays.Music
|
||||
onScreenDisplay?.Display(new MusicActionToast("Previous track"));
|
||||
break;
|
||||
}
|
||||
}).RunTask();
|
||||
});
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user