mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Unpause music when changing selection at song select
This commit is contained in:
@ -359,6 +359,7 @@ namespace osu.Game.Screens.Select
|
||||
return;
|
||||
|
||||
beatmapNoDebounce = beatmap;
|
||||
|
||||
performUpdateSelected();
|
||||
}
|
||||
|
||||
@ -586,10 +587,18 @@ namespace osu.Game.Screens.Select
|
||||
{
|
||||
Track track = Beatmap.Value.Track;
|
||||
|
||||
if ((!track.IsRunning || restart) && music?.IsUserPaused != true)
|
||||
if (!track.IsRunning || restart)
|
||||
{
|
||||
track.RestartPoint = Beatmap.Value.Metadata.PreviewTime;
|
||||
track.Restart();
|
||||
|
||||
if (music != null)
|
||||
{
|
||||
// use the global music controller (when available) to cancel a potential local user paused state.
|
||||
music.SeekTo(track.RestartPoint);
|
||||
music.Play();
|
||||
}
|
||||
else
|
||||
track.Restart();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user