Skip to content

Commit 809331b

Browse files
committed
Debounce
1 parent ef1792b commit 809331b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Files/ViewModels/ItemViewModel.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1858,7 +1858,7 @@ private async void ProcessOperationQueue(CancellationToken cancellationToken, bo
18581858
App.Logger.Warn(ex, ex.Message);
18591859
}
18601860

1861-
if (anyEdits && sampler.CheckNow())
1861+
if (sampler.CheckNow())
18621862
{
18631863
await OrderFilesAndFoldersAsync();
18641864
await ApplyFilesAndFoldersChangesAsync();
@@ -1869,7 +1869,7 @@ private async void ProcessOperationQueue(CancellationToken cancellationToken, bo
18691869
await UpdateFilesOrFoldersAsync(updateList, hasSyncStatus);
18701870
}
18711871

1872-
if (anyEdits)
1872+
if (anyEdits && sampler.CheckNow())
18731873
{
18741874
await OrderFilesAndFoldersAsync();
18751875
await ApplyFilesAndFoldersChangesAsync();
@@ -2229,4 +2229,4 @@ public enum ItemLoadStatus
22292229
/// </summary>
22302230
public string Path { get; set; }
22312231
}
2232-
}
2232+
}

0 commit comments

Comments
 (0)