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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user