mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 18:52:55 +08:00
Move collection change event binding to LoadComplete
This commit is contained in:
parent
32652ace75
commit
9c46592e0e
@ -33,8 +33,10 @@ namespace osu.Game.Graphics.Containers
|
|||||||
|
|
||||||
protected abstract OsuRearrangeableListItem<TModel> CreateOsuDrawable(TModel item);
|
protected abstract OsuRearrangeableListItem<TModel> CreateOsuDrawable(TModel item);
|
||||||
|
|
||||||
protected OsuRearrangeableListContainer()
|
protected override void LoadComplete()
|
||||||
{
|
{
|
||||||
|
base.LoadComplete();
|
||||||
|
|
||||||
Items.CollectionChanged += (_, args) =>
|
Items.CollectionChanged += (_, args) =>
|
||||||
{
|
{
|
||||||
if (args.Action == NotifyCollectionChangedAction.Move)
|
if (args.Action == NotifyCollectionChangedAction.Move)
|
||||||
|
Loading…
Reference in New Issue
Block a user