1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-18 06:27:18 +08:00

Replace BindTo with setting the bindable

This commit is contained in:
Endrik Tombak 2020-04-13 17:28:02 +03:00
parent 633b969017
commit 13812fef4c

View File

@ -18,7 +18,7 @@ namespace osu.Game.Overlays.Direct
private readonly ShakeContainer shakeContainer;
private readonly DownloadButton button;
private readonly BindableBool noVideoSetting = new BindableBool();
private Bindable<bool> noVideoSetting;
public PanelDownloadButton(BeatmapSetInfo beatmapSet)
: base(beatmapSet)
@ -51,7 +51,7 @@ namespace osu.Game.Overlays.Direct
return;
}
noVideoSetting.BindTo(osuConfig.GetBindable<bool>(OsuSetting.PreferNoVideo));
noVideoSetting = osuConfig.GetBindable<bool>(OsuSetting.PreferNoVideo);
button.Action = () =>
{