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:
parent
633b969017
commit
13812fef4c
@ -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 = () =>
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user