mirror of
https://github.com/ppy/osu
synced 2025-01-31 18:32:14 +00:00
Fixes ResotreDefaultValue to use the BindableWithCurrent correctly
This commit is contained in:
parent
264d8b9b86
commit
90f00a7663
@ -29,9 +29,6 @@ namespace osu.Game.Overlays
|
|||||||
set
|
set
|
||||||
{
|
{
|
||||||
current.Current = value;
|
current.Current = value;
|
||||||
current.ValueChanged += _ => UpdateState();
|
|
||||||
current.DisabledChanged += _ => UpdateState();
|
|
||||||
current.DefaultChanged += _ => UpdateState();
|
|
||||||
UpdateState();
|
UpdateState();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -46,6 +43,10 @@ namespace osu.Game.Overlays
|
|||||||
Width = SettingsPanel.CONTENT_MARGINS;
|
Width = SettingsPanel.CONTENT_MARGINS;
|
||||||
Padding = new MarginPadding { Vertical = 1.5f };
|
Padding = new MarginPadding { Vertical = 1.5f };
|
||||||
Alpha = 0f;
|
Alpha = 0f;
|
||||||
|
|
||||||
|
Current.ValueChanged += _ => UpdateState();
|
||||||
|
Current.DisabledChanged += _ => UpdateState();
|
||||||
|
Current.DefaultChanged += _ => UpdateState();
|
||||||
}
|
}
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
|
Loading…
Reference in New Issue
Block a user