File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Files.App/Utils/RecentItem Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ public RecentItem(ShellLinkItem linkItem) : base()
51
51
LinkPath = linkItem . FilePath ;
52
52
RecentPath = linkItem . TargetPath ;
53
53
Name = NameOrPathWithoutExtension ( linkItem . FileName ) ;
54
- Type = linkItem . IsFolder ? StorageItemTypes . Folder : StorageItemTypes . File ;
54
+ Type = linkItem . IsFolder ? StorageItemTypes . Folder : ZipStorageFolder . IsZipPath ( LinkPath ) ? StorageItemTypes . Folder : StorageItemTypes . File ;
55
55
FolderImg = linkItem . IsFolder ;
56
56
FileIconVis = ! linkItem . IsFolder ;
57
57
LastModified = linkItem . ModifiedDate ;
@@ -67,7 +67,7 @@ public RecentItem(ShellFileItem fileItem) : base()
67
67
LinkPath = ShellStorageFolder . IsShellPath ( fileItem . FilePath ) ? fileItem . RecyclePath : fileItem . FilePath ; // use true path on disk for shell items
68
68
RecentPath = LinkPath ; // intentionally the same
69
69
Name = NameOrPathWithoutExtension ( fileItem . FileName ) ;
70
- Type = fileItem . IsFolder ? StorageItemTypes . Folder : StorageItemTypes . File ;
70
+ Type = fileItem . IsFolder ? StorageItemTypes . Folder : ZipStorageFolder . IsZipPath ( LinkPath ) ? StorageItemTypes . Folder : StorageItemTypes . File ;
71
71
FolderImg = fileItem . IsFolder ;
72
72
FileIconVis = ! fileItem . IsFolder ;
73
73
LastModified = fileItem . ModifiedDate ;
You can’t perform that action at this time.
0 commit comments