mirror of
https://github.com/ppy/osu.git
synced 2025-03-28 09:37:23 +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 ShakeContainer shakeContainer;
|
||||||
private readonly DownloadButton button;
|
private readonly DownloadButton button;
|
||||||
private readonly BindableBool noVideoSetting = new BindableBool();
|
private Bindable<bool> noVideoSetting;
|
||||||
|
|
||||||
public PanelDownloadButton(BeatmapSetInfo beatmapSet)
|
public PanelDownloadButton(BeatmapSetInfo beatmapSet)
|
||||||
: base(beatmapSet)
|
: base(beatmapSet)
|
||||||
@ -51,7 +51,7 @@ namespace osu.Game.Overlays.Direct
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
noVideoSetting.BindTo(osuConfig.GetBindable<bool>(OsuSetting.PreferNoVideo));
|
noVideoSetting = osuConfig.GetBindable<bool>(OsuSetting.PreferNoVideo);
|
||||||
|
|
||||||
button.Action = () =>
|
button.Action = () =>
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user