Schedule visibility update once per frame

This commit is contained in:
Bartłomiej Dach 2020-10-31 14:45:11 +01:00
parent d74c19e2d7
commit 007c27d3ff

View File

@ -414,7 +414,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
EditorBeatmap.HitObjectUpdated += _ => UpdateTernaryStates(); EditorBeatmap.HitObjectUpdated += _ => UpdateTernaryStates();
EditorBeatmap.SelectedHitObjects.CollectionChanged += (sender, args) => EditorBeatmap.SelectedHitObjects.CollectionChanged += (sender, args) =>
{ {
updateVisibility(); Scheduler.AddOnce(updateVisibility);
UpdateTernaryStates(); UpdateTernaryStates();
}; };
} }