1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 08:23:00 +08:00

Fix background track restarting twice when exiting song select with no active selection

This commit is contained in:
Dean Herbert 2023-06-12 17:12:38 +09:00
parent a1b17c4468
commit a201339f9c

View File

@ -814,6 +814,9 @@ namespace osu.Game.Screens.Select
if (!ControlGlobalMusic)
return;
if (Beatmap.Value is DummyWorkingBeatmap)
return;
ITrack track = music.CurrentTrack;
bool isNewTrack = !lastTrack.TryGetTarget(out var last) || last != track;