Merge pull request #10661 from peppy/debounce-update-ternary-states

Debounce calls to UpdateTernaryStates
This commit is contained in:
Bartłomiej Dach
2020-11-02 18:00:32 +01:00
committed by GitHub

View File

@ -419,11 +419,11 @@ namespace osu.Game.Screens.Edit.Compose.Components
};
// bring in updates from selection changes
EditorBeatmap.HitObjectUpdated += _ => UpdateTernaryStates();
EditorBeatmap.HitObjectUpdated += _ => Scheduler.AddOnce(UpdateTernaryStates);
EditorBeatmap.SelectedHitObjects.CollectionChanged += (sender, args) =>
{
Scheduler.AddOnce(updateVisibility);
UpdateTernaryStates();
Scheduler.AddOnce(UpdateTernaryStates);
};
}