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()
5151 LinkPath = linkItem . FilePath ;
5252 RecentPath = linkItem . TargetPath ;
5353 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 ;
5555 FolderImg = linkItem . IsFolder ;
5656 FileIconVis = ! linkItem . IsFolder ;
5757 LastModified = linkItem . ModifiedDate ;
@@ -67,7 +67,7 @@ public RecentItem(ShellFileItem fileItem) : base()
6767 LinkPath = ShellStorageFolder . IsShellPath ( fileItem . FilePath ) ? fileItem . RecyclePath : fileItem . FilePath ; // use true path on disk for shell items
6868 RecentPath = LinkPath ; // intentionally the same
6969 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 ;
7171 FolderImg = fileItem . IsFolder ;
7272 FileIconVis = ! fileItem . IsFolder ;
7373 LastModified = fileItem . ModifiedDate ;
You can’t perform that action at this time.
0 commit comments