1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 06:52:56 +08:00

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
commit 3fe965346c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);
};
}