1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 11:37:28 +08:00

Only add setting tracker when customisation is permitted

This commit is contained in:
Salman Ahmed 2022-07-19 19:21:16 +03:00
parent e86a35fe33
commit 89653b74c7

View File

@ -246,8 +246,11 @@ namespace osu.Game.Overlays.Mods
updateCustomisation(val);
updateFromExternalSelection();
modSettingChangeTracker = new ModSettingChangeTracker(val.NewValue);
modSettingChangeTracker.SettingChanged += _ => updateMultiplier();
if (AllowCustomisation)
{
modSettingChangeTracker = new ModSettingChangeTracker(val.NewValue);
modSettingChangeTracker.SettingChanged += _ => updateMultiplier();
}
}, true);
customisationVisible.BindValueChanged(_ => updateCustomisationVisualState(), true);