1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-18 15:30:06 +08:00

Merge pull request #7040 from peppy/fix-cross-thread-callback

Fix currentTrackCompleted not being run on main thread
This commit is contained in:
Dan Balasescu
2019-12-02 18:48:46 +09:00
committed by GitHub
Unverified
+2 -2
View File
@@ -406,11 +406,11 @@ namespace osu.Game
nextBeatmap?.LoadBeatmapAsync();
}
private void currentTrackCompleted()
private void currentTrackCompleted() => Schedule(() =>
{
if (!Beatmap.Value.Track.Looping && !Beatmap.Disabled)
musicController.NextTrack();
}
});
#endregion