1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-03 05:30:11 +08:00

Set Current directly

This commit is contained in:
smoogipoo
2021-02-18 19:33:04 +09:00
Unverified
parent 668cc144f6
commit 8a1a4ea2d4
@@ -63,7 +63,7 @@ namespace osu.Game.Collections
// Dropdown has logic which triggers a change on the bindable with every change to the contained items.
// This is not desirable here, as it leads to multiple filter operations running even though nothing has changed.
// An extra bindable is enough to subvert this behaviour.
base.Current.BindTo(Current);
base.Current = Current;
collections.BindCollectionChanged((_, __) => collectionsChanged(), true);
Current.BindValueChanged(filterChanged, true);