1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 19:22:54 +08:00

Use BindTarget

This commit is contained in:
Bartłomiej Dach 2020-04-12 19:48:15 +02:00
parent 1cf240b5ff
commit 3efb4aba25

View File

@ -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: