mirror of
https://github.com/ppy/osu.git
synced 2024-11-14 17:17:24 +08:00
Merge branch 'split-out-music-controller' into music-controller-hotkeys
This commit is contained in:
commit
6a70849acb
@ -247,13 +247,6 @@ namespace osu.Game.Overlays
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void Dispose(bool isDisposing)
|
|
||||||
{
|
|
||||||
base.Dispose(isDisposing);
|
|
||||||
|
|
||||||
musicController.TrackChanged -= trackChanged;
|
|
||||||
}
|
|
||||||
|
|
||||||
private Action pendingBeatmapSwitch;
|
private Action pendingBeatmapSwitch;
|
||||||
|
|
||||||
private void trackChanged(WorkingBeatmap beatmap, TrackChangeDirection direction = TrackChangeDirection.None)
|
private void trackChanged(WorkingBeatmap beatmap, TrackChangeDirection direction = TrackChangeDirection.None)
|
||||||
@ -313,6 +306,14 @@ namespace osu.Game.Overlays
|
|||||||
playlistButton.Enabled.Value = !disabled;
|
playlistButton.Enabled.Value = !disabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override void Dispose(bool isDisposing)
|
||||||
|
{
|
||||||
|
base.Dispose(isDisposing);
|
||||||
|
|
||||||
|
if (musicController != null)
|
||||||
|
musicController.TrackChanged -= trackChanged;
|
||||||
|
}
|
||||||
|
|
||||||
private class MusicIconButton : IconButton
|
private class MusicIconButton : IconButton
|
||||||
{
|
{
|
||||||
public MusicIconButton()
|
public MusicIconButton()
|
||||||
|
Loading…
Reference in New Issue
Block a user