diff --git a/osu.Game/Overlays/Settings/SettingsItemV2.cs b/osu.Game/Overlays/Settings/SettingsItemV2.cs index 1f947d2898..084aa1ad1f 100644 --- a/osu.Game/Overlays/Settings/SettingsItemV2.cs +++ b/osu.Game/Overlays/Settings/SettingsItemV2.cs @@ -105,23 +105,13 @@ namespace osu.Game.Overlays.Settings #region ISettingsItem - public bool HasClassicDefault { get; private set; } - - private Action? applyClassicDefault; + public bool HasClassicDefault => ApplyClassicDefault != null; /// /// If set, this setting is considered as having a "classic" default value, /// and this is the function for overwriting the control with that value. /// - public Action? ApplyClassicDefault - { - get => applyClassicDefault; - set - { - applyClassicDefault = value; - HasClassicDefault = true; - } - } + public Action? ApplyClassicDefault { get; set; } void ISettingsItem.ApplyClassicDefault() => ApplyClassicDefault?.Invoke();