Skip to content

Commit fd57b28

Browse files
authored
Fix: Fixed conflict with svg thumbnails generated by PowerToys (#15073)
1 parent 7cde881 commit fd57b28

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Files.App/Data/Models/ItemViewModel.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,9 @@ private async Task LoadThumbnailAsync(ListedItem item, CancellationToken cancell
923923
var returnIconOnly = UserSettingsService.FoldersSettingsService.ShowThumbnails == false || thumbnailSize < 48;
924924

925925
byte[]? result = null;
926-
if (item.IsFolder)
926+
927+
// Non-cached thumbnails take longer to generate
928+
if (item.IsFolder || !FileExtensionHelpers.IsExecutableFile(item.FileExtension))
927929
{
928930
if (!returnIconOnly)
929931
{

0 commit comments

Comments
 (0)