1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 18:23:04 +08:00

Move collection change event binding to LoadComplete

This commit is contained in:
Jamie Taylor 2022-06-23 20:04:54 +09:00
parent 32652ace75
commit 9c46592e0e
No known key found for this signature in database
GPG Key ID: 2ACFA8B6370B8C8C

View File

@ -33,8 +33,10 @@ namespace osu.Game.Graphics.Containers
protected abstract OsuRearrangeableListItem<TModel> CreateOsuDrawable(TModel item);
protected OsuRearrangeableListContainer()
protected override void LoadComplete()
{
base.LoadComplete();
Items.CollectionChanged += (_, args) =>
{
if (args.Action == NotifyCollectionChangedAction.Move)