Fixes ResotreDefaultValue to use the BindableWithCurrent correctly

This commit is contained in:
Swords 2021-05-16 15:01:19 +10:00
parent 264d8b9b86
commit 90f00a7663

View File

@ -29,9 +29,6 @@ namespace osu.Game.Overlays
set
{
current.Current = value;
current.ValueChanged += _ => UpdateState();
current.DisabledChanged += _ => UpdateState();
current.DefaultChanged += _ => UpdateState();
UpdateState();
}
}
@ -46,6 +43,10 @@ namespace osu.Game.Overlays
Width = SettingsPanel.CONTENT_MARGINS;
Padding = new MarginPadding { Vertical = 1.5f };
Alpha = 0f;
Current.ValueChanged += _ => UpdateState();
Current.DisabledChanged += _ => UpdateState();
Current.DefaultChanged += _ => UpdateState();
}
[BackgroundDependencyLoader]