Fix typo in ObservableAutoWrapper.connect overload

Previously, it wasn't passing the on_removed param to the other overload
This commit is contained in:
John Colvin committed 2022-02-20 22:01:23 -05:00
1 parent 1618784c0f
commit 9d8f65adc0
1 file changed
+1 -1
@@ -96,7 +96,7 @@ namespace mbts.ui.utility {
}
public static IDisposable connect<T, TResult>(ObservableCollection<T> source, IList<TResult> target, Func<T, TResult> create, Action<TResult> on_removed = null) =>
connect<ObservableCollection<T>, T, TResult>(source, target, create, null);
connect<ObservableCollection<T>, T, TResult>(source, target, create, on_removed);
public static IDisposable connect<TCollection, T, TResult>(TCollection source, IList<TResult> target, Func<T, TResult> create, Action<TResult> on_removed = null)
where TCollection : IReadOnlyList<T>, INotifyCollectionChanged => connect(source, source, target, create, on_removed);