mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Always update default value
This commit is contained in:
@ -82,12 +82,12 @@ namespace osu.Game.Rulesets.Mods
|
|||||||
|
|
||||||
userChangedSettings.TryAdd(bindable, false);
|
userChangedSettings.TryAdd(bindable, false);
|
||||||
|
|
||||||
|
bindable.Default = beatmapDefault;
|
||||||
|
|
||||||
// users generally choose a difficulty setting and want it to stick across multiple beatmap changes.
|
// users generally choose a difficulty setting and want it to stick across multiple beatmap changes.
|
||||||
// we only want to value transfer if the user hasn't changed the value previously.
|
// we only want to value transfer if the user hasn't changed the value previously.
|
||||||
if (!userChangedSettings[bindable])
|
if (!userChangedSettings[bindable])
|
||||||
{
|
bindable.Value = beatmapDefault;
|
||||||
bindable.Value = bindable.Default = beatmapDefault;
|
|
||||||
}
|
|
||||||
|
|
||||||
bindable.ValueChanged += _ => userChangedSettings[bindable] = !bindable.IsDefault;
|
bindable.ValueChanged += _ => userChangedSettings[bindable] = !bindable.IsDefault;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user