Always update default value

This commit is contained in:
Dean Herbert 2019-12-27 23:01:52 +09:00
parent 2c8879f0fb
commit 5efb7e8015

View File

@ -82,12 +82,12 @@ namespace osu.Game.Rulesets.Mods
userChangedSettings.TryAdd(bindable, false);
bindable.Default = beatmapDefault;
// 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.
if (!userChangedSettings[bindable])
{
bindable.Value = bindable.Default = beatmapDefault;
}
bindable.Value = beatmapDefault;
bindable.ValueChanged += _ => userChangedSettings[bindable] = !bindable.IsDefault;
}