Skip to content

Commit 5827f80

Browse files
authored
Fix delayed item display bug (#2390)
1 parent fb298bd commit 5827f80

File tree

4 files changed

+159
-140
lines changed

4 files changed

+159
-140
lines changed
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
using System.Collections.ObjectModel;
22
using System.Collections.Specialized;
3+
using Windows.ApplicationModel.Core;
34

45
namespace Files.Helpers
56
{
67
public class BulkObservableCollection<T> : ObservableCollection<T>
78
{
8-
private bool _isBlukOperationStarted;
9+
private bool _isBulkOperationStarted;
910

1011
public void BeginBulkOperation()
1112
{
12-
_isBlukOperationStarted = true;
13+
_isBulkOperationStarted = true;
1314
}
1415

1516
protected override void OnCollectionChanged(NotifyCollectionChangedEventArgs e)
1617
{
17-
if (!_isBlukOperationStarted)
18+
if (!_isBulkOperationStarted)
1819
{
1920
base.OnCollectionChanged(e);
2021
}
@@ -23,7 +24,7 @@ protected override void OnCollectionChanged(NotifyCollectionChangedEventArgs e)
2324
public void EndBulkOperation()
2425
{
2526
base.OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
26-
_isBlukOperationStarted = false;
27+
_isBulkOperationStarted = false;
2728
}
2829
}
2930
}

0 commit comments

Comments
 (0)