mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 19:22:54 +08:00
Use BindTarget
This commit is contained in:
parent
1cf240b5ff
commit
3efb4aba25
@ -274,13 +274,12 @@ namespace osu.Game.Overlays.BeatmapSet
|
||||
{
|
||||
case DownloadState.LocallyAvailable:
|
||||
// temporary for UX until new design is implemented.
|
||||
PanelDownloadButton panelButton;
|
||||
downloadButtonsContainer.Child = panelButton = new PanelDownloadButton(BeatmapSet.Value)
|
||||
downloadButtonsContainer.Child = new PanelDownloadButton(BeatmapSet.Value)
|
||||
{
|
||||
Width = 50,
|
||||
RelativeSizeAxes = Axes.Y
|
||||
RelativeSizeAxes = Axes.Y,
|
||||
CurrentBeatmap = { BindTarget = Picker.Beatmap }
|
||||
};
|
||||
panelButton.CurrentBeatmap.BindTo(Picker.Beatmap);
|
||||
break;
|
||||
|
||||
case DownloadState.Downloading:
|
||||
|
Loading…
Reference in New Issue
Block a user