mirror of https://github.com/ppy/osu
Fix currenTrackCompleted not being run on main thread
This commit is contained in:
parent
2805ea4c95
commit
6893ec22bb
|
@ -406,11 +406,11 @@ private void beatmapChanged(ValueChangedEvent<WorkingBeatmap> beatmap)
|
|||
nextBeatmap?.LoadBeatmapAsync();
|
||||
}
|
||||
|
||||
private void currentTrackCompleted()
|
||||
private void currentTrackCompleted() => Schedule(() =>
|
||||
{
|
||||
if (!Beatmap.Value.Track.Looping && !Beatmap.Disabled)
|
||||
musicController.NextTrack();
|
||||
}
|
||||
});
|
||||
|
||||
#endregion
|
||||
|
||||
|
|
Loading…
Reference in New Issue