mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 12:17:46 +08:00
Merge pull request #10062 from frenzibyte/fix-music-controller-propagating-event-twice
Fix MusicController raising track changed event twice
This commit is contained in:
commit
a0bc376446
@ -279,6 +279,11 @@ namespace osu.Game.Overlays
|
||||
|
||||
private void changeBeatmap(WorkingBeatmap newWorking)
|
||||
{
|
||||
// This method can potentially be triggered multiple times as it is eagerly fired in next() / prev() to ensure correct execution order
|
||||
// (changeBeatmap must be called before consumers receive the bindable changed event, which is not the case when the local beatmap bindable is updated directly).
|
||||
if (newWorking == current)
|
||||
return;
|
||||
|
||||
var lastWorking = current;
|
||||
|
||||
TrackChangeDirection direction = TrackChangeDirection.None;
|
||||
|
Loading…
Reference in New Issue
Block a user