Skip to content

Commit

Permalink
Merge pull request #143 from modplug/master
Browse files Browse the repository at this point in the history
Fix bug in ObservableCollectionAdaptor where it didn't respect the RefreshThreshold
  • Loading branch information
RolandPheasant authored Aug 21, 2018
2 parents f8329ad + 0e8428f commit e54eaec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DynamicData/Binding/ObservableCollectionAdaptor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public ObservableCollectionAdaptor([NotNull] IObservableCollection<T> collection
/// <param name="changes">The changes.</param>
public void Adapt(IChangeSet<T> changes)
{
if (changes.Count > _refreshThreshold || !_loaded)
if (changes.TotalChanges > _refreshThreshold || !_loaded)
{
using (_collection.SuspendNotifications())
{
Expand Down
2 changes: 1 addition & 1 deletion DynamicData/IChangeSet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
namespace DynamicData
{
/// <summary>
/// Base interface represeting a set of changed
/// Base interface representing a set of changes
/// </summary>
public interface IChangeSet
{
Expand Down

0 comments on commit e54eaec

Please sign in to comment.