mirror of
https://github.com/ppy/osu
synced 2025-01-21 21:33:13 +00:00
Revert unnecessary change
This commit is contained in:
parent
86ae61c6b7
commit
0f7fde5d2c
@ -83,7 +83,10 @@ namespace osu.Game.Overlays.Music
|
|||||||
BeatmapInfo toSelect = list.FirstVisibleSet?.Beatmaps?.FirstOrDefault();
|
BeatmapInfo toSelect = list.FirstVisibleSet?.Beatmaps?.FirstOrDefault();
|
||||||
|
|
||||||
if (toSelect != null)
|
if (toSelect != null)
|
||||||
|
{
|
||||||
beatmap.Value = beatmaps.GetWorkingBeatmap(toSelect);
|
beatmap.Value = beatmaps.GetWorkingBeatmap(toSelect);
|
||||||
|
musicController.CurrentTrack?.Restart();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -116,12 +119,12 @@ namespace osu.Game.Overlays.Music
|
|||||||
{
|
{
|
||||||
if (set.ID == (beatmap.Value?.BeatmapSetInfo?.ID ?? -1))
|
if (set.ID == (beatmap.Value?.BeatmapSetInfo?.ID ?? -1))
|
||||||
{
|
{
|
||||||
musicController.SeekTo(0);
|
musicController.CurrentTrack?.Seek(0);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
beatmap.Value = beatmaps.GetWorkingBeatmap(set.Beatmaps.First());
|
beatmap.Value = beatmaps.GetWorkingBeatmap(set.Beatmaps.First());
|
||||||
musicController.Play(true);
|
musicController.CurrentTrack?.Restart();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user