Bug fixes

This commit is contained in:
TheXamlGuy
2024-07-10 22:37:26 +01:00
parent 129efe8b2b
commit e1d8c3f534
+1 -1
View File
@@ -153,6 +153,7 @@ public partial class ObservableCollection<TItem> :
if (source is INotifyCollectionChanged observableSource) if (source is INotifyCollectionChanged observableSource)
{ {
observableSource.CollectionChanged -= SourceCollectionChanged;
observableSource.CollectionChanged += SourceCollectionChanged; observableSource.CollectionChanged += SourceCollectionChanged;
} }
} }
@@ -272,7 +273,6 @@ public partial class ObservableCollection<TItem> :
public void Clear(bool disposeItems = false) public void Clear(bool disposeItems = false)
{ {
isClearing = true; isClearing = true;
if (disposeItems) if (disposeItems)
{ {
foreach (TItem item in this.ToList()) foreach (TItem item in this.ToList())