mirror of
https://github.com/ppy/osu.git
synced 2025-01-21 07:33:12 +08:00
Merge pull request #10661 from peppy/debounce-update-ternary-states
Debounce calls to UpdateTernaryStates
This commit is contained in:
commit
3fe965346c
@ -419,11 +419,11 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
|||||||
};
|
};
|
||||||
|
|
||||||
// bring in updates from selection changes
|
// bring in updates from selection changes
|
||||||
EditorBeatmap.HitObjectUpdated += _ => UpdateTernaryStates();
|
EditorBeatmap.HitObjectUpdated += _ => Scheduler.AddOnce(UpdateTernaryStates);
|
||||||
EditorBeatmap.SelectedHitObjects.CollectionChanged += (sender, args) =>
|
EditorBeatmap.SelectedHitObjects.CollectionChanged += (sender, args) =>
|
||||||
{
|
{
|
||||||
Scheduler.AddOnce(updateVisibility);
|
Scheduler.AddOnce(updateVisibility);
|
||||||
UpdateTernaryStates();
|
Scheduler.AddOnce(UpdateTernaryStates);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user