Skip to content

Commit dec94fe

Browse files
authored
Fix: Fixed an issue where the app could hang while updating relative date columns (#18852)
1 parent dc73136 commit dec94fe

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Files.App/ViewModels/ShellViewModel.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3242,11 +3242,11 @@ public void UpdateDateDisplay()
32423242
{
32433243
App.Logger.LogDebug($"UpdateDateDisplay: itemCount={filesAndFolders.Count}");
32443244

3245-
filesAndFolders.ToList().AsParallel().ForAll(async item =>
3245+
foreach (var item in filesAndFolders.ToList())
32463246
{
32473247
if (item.IsRealChanges)
3248-
await dispatcherQueue.EnqueueOrInvokeAsync(item.UpdateReal);
3249-
});
3248+
item.UpdateReal();
3249+
}
32503250
}
32513251

32523252
public void Dispose()

0 commit comments

Comments
 (0)