Skip to content

Commit b6e851e

Browse files
authored
Fixed that .Bind() operators for ISortedChangeSet<TObject, TKey> streams were not properly recognizing the ResetOnFirstTimeLoad option. The option was only being used if the initial changeset also exceeded the ResetThreshold setting. (reactivemarbles#935)
1 parent afbbb47 commit b6e851e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/DynamicData/Binding/SortedObservableCollectionAdaptor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public void Adapt(ISortedChangeSet<TObject, TKey> changes, IObservableCollection
6868
break;
6969

7070
case SortReason.InitialLoad:
71-
if (resetOnFirstTimeLoad && (changes.Count - changes.Refreshes > refreshThreshold))
71+
if (resetOnFirstTimeLoad || (changes.Count - changes.Refreshes > refreshThreshold))
7272
{
7373
using (collection.SuspendNotifications())
7474
{

0 commit comments

Comments
 (0)