mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 16:12:57 +08:00
Remove unnecessary local bindable
This commit is contained in:
parent
7dbb4d919b
commit
d25ef1966d
@ -20,7 +20,6 @@ namespace osu.Game.Screens.Menu
|
|||||||
[Resolved]
|
[Resolved]
|
||||||
private Bindable<WorkingBeatmap> beatmap { get; set; }
|
private Bindable<WorkingBeatmap> beatmap { get; set; }
|
||||||
|
|
||||||
private readonly Bindable<WorkingBeatmap> workingBeatmap = new Bindable<WorkingBeatmap>();
|
|
||||||
private readonly OsuSpriteText title, artist;
|
private readonly OsuSpriteText title, artist;
|
||||||
|
|
||||||
public SongTicker()
|
public SongTicker()
|
||||||
@ -52,8 +51,7 @@ namespace osu.Game.Screens.Menu
|
|||||||
protected override void LoadComplete()
|
protected override void LoadComplete()
|
||||||
{
|
{
|
||||||
base.LoadComplete();
|
base.LoadComplete();
|
||||||
workingBeatmap.BindTo(beatmap);
|
beatmap.BindValueChanged(onBeatmapChanged);
|
||||||
workingBeatmap.BindValueChanged(onBeatmapChanged);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void onBeatmapChanged(ValueChangedEvent<WorkingBeatmap> working)
|
private void onBeatmapChanged(ValueChangedEvent<WorkingBeatmap> working)
|
||||||
|
Loading…
Reference in New Issue
Block a user