Fix MusicController raising TrackChanged event twice

This commit is contained in:
Salman Ahmed
2020-09-04 09:45:24 +03:00
parent b631430a5b
commit 54013790fc

View File

@ -279,6 +279,10 @@ namespace osu.Game.Overlays
private void changeBeatmap(WorkingBeatmap newWorking)
{
// The provided beatmap is same as current, no need to do any changes.
if (newWorking == current)
return;
var lastWorking = current;
TrackChangeDirection direction = TrackChangeDirection.None;