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:
parent
453b77e0dc
commit
0755430006
@ -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 += _ =>
|
||||
|
Loading…
Reference in New Issue
Block a user