ConcurrentObservableHashSet advises subscribers to rebuild
when items are removed.
MODIFY
WalletWasabi/Helpers/ConcurrentObservableHashSet.cs
WalletWasabi/Helpers/ConcurrentObservableHashSet.cs
@@ -55,7 +55,8 @@ namespace System.Collections.ObjectModel
{
if (ConcurrentHashSet.TryRemove(item))
{
- CollectionChanged?.Invoke(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, item));
+ CollectionChanged?.Invoke(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
+ CollectionChanged?.Invoke(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, ConcurrentHashSet));
return true;
}
return false;

ConcurrentObservableHashSet advises subscribers to rebuild

when items are removed.