From 276757315f0197cdf418ba35cd26237974fa511e Mon Sep 17 00:00:00 2001 From: Salman Alshamrani Date: Thu, 18 Dec 2025 20:03:38 -0500 Subject: [PATCH] Simplify classic default flow --- osu.Game/Overlays/Settings/SettingsItemV2.cs | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) 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();