mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 13:32:54 +08:00
Set Current directly
This commit is contained in:
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.
|
// 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.
|
// 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.
|
// An extra bindable is enough to subvert this behaviour.
|
||||||
base.Current.BindTo(Current);
|
base.Current = Current;
|
||||||
|
|
||||||
collections.BindCollectionChanged((_, __) => collectionsChanged(), true);
|
collections.BindCollectionChanged((_, __) => collectionsChanged(), true);
|
||||||
Current.BindValueChanged(filterChanged, true);
|
Current.BindValueChanged(filterChanged, true);
|
||||||
|
Loading…
Reference in New Issue
Block a user