1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-13 08:32:57 +08:00

Use AddOnce for update calls

This commit is contained in:
Dean Herbert 2022-06-24 16:53:04 +09:00
parent 453b77e0dc
commit 0755430006

View File

@ -64,13 +64,13 @@ namespace osu.Game.Beatmaps
{
base.LoadComplete();
currentRuleset.BindValueChanged(_ => updateTrackedBindables());
currentRuleset.BindValueChanged(_ => Scheduler.AddOnce(updateTrackedBindables));
currentMods.BindValueChanged(mods =>
{
modSettingChangeTracker?.Dispose();
updateTrackedBindables();
Scheduler.AddOnce(updateTrackedBindables);
modSettingChangeTracker = new ModSettingChangeTracker(mods.NewValue);
modSettingChangeTracker.SettingChanged += _ =>