Skip to content
Permalink
Browse files

removing a package did not fire an event, so all related assets where…

… still in the dependency manager
  • Loading branch information
tebjan authored and xen2 committed Oct 28, 2019
1 parent f678f42 commit e822a0411c885af88fcae37727d2d50d741b22e6
Showing with 4 additions and 1 deletion.
  1. +4 −1 sources/assets/Xenko.Core.Assets/PackageCollection.cs
@@ -141,7 +141,10 @@ public void CopyTo(Package[] array, int arrayIndex)
public bool Remove(Package item)
{
if (item == null) throw new ArgumentNullException("item");
return packages.Remove(item);
var success = packages.Remove(item);
if (success)
OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, item));
return success;
}

private void OnCollectionChanged(NotifyCollectionChangedEventArgs e)

0 comments on commit e822a04

Please sign in to comment.
You can’t perform that action at this time.