Skip to content

Commit

Permalink
Update src/Files.App/Data/Models/ItemViewModel.cs
Browse files Browse the repository at this point in the history
Co-authored-by: hishitetsu <[email protected]>
  • Loading branch information
yaira2 and hishitetsu authored Mar 3, 2024
1 parent 723daae commit 6510b2c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Files.App/Data/Models/ItemViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1103,8 +1103,10 @@ await dispatcherQueue.EnqueueOrInvokeAsync(() =>
// Try loading thumbnail for cloud files in case they weren't cached the first time
if (item.SyncStatusUI.SyncStatus != CloudDriveSyncStatus.NotSynced && item.SyncStatusUI.SyncStatus != CloudDriveSyncStatus.Unknown)
{
await Task.Delay(500);
_ = LoadThumbnailAsync(item);
_ = Task.Run(async () => {
await Task.Delay(500);
await LoadThumbnailAsync(item);
});
}
}

Expand Down

0 comments on commit 6510b2c

Please sign in to comment.