Skip to content

Commit

Permalink
Fix: Fixed issue where switching from Details to Tiles didn't reload …
Browse files Browse the repository at this point in the history
…thumbnails (files-community#14457)
  • Loading branch information
hishitetsu authored Jan 14, 2024
1 parent f3161fe commit d7ed905
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Files.App/Views/Layouts/GridLayoutPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -381,10 +381,8 @@ private async Task ReloadItemIconsAsync()
foreach (ListedItem listedItem in filesAndFolders)
{
listedItem.ItemPropertiesInitialized = false;
if (FileList.ContainerFromItem(listedItem) is null)
return;

await ParentShellPageInstance.FilesystemViewModel.LoadExtendedItemPropertiesAsync(listedItem, currentIconSize);
if (FileList.ContainerFromItem(listedItem) is not null)
await ParentShellPageInstance.FilesystemViewModel.LoadExtendedItemPropertiesAsync(listedItem, currentIconSize);
}

if (ParentShellPageInstance.FilesystemViewModel.EnabledGitProperties is not GitProperties.None)
Expand Down

0 comments on commit d7ed905

Please sign in to comment.