File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Files.App/ViewModels/Properties/Items Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -66,8 +66,8 @@ public override async Task GetSpecialProperties()
66
66
ViewModel . LastSeparatorVisibility = false ;
67
67
ViewModel . ItemSizeVisibility = true ;
68
68
69
- ViewModel . FilesCount += List . Where ( x => x . PrimaryItemAttribute == StorageItemTypes . File ) . ToList ( ) . Count ;
70
- ViewModel . FoldersCount += List . Where ( x => x . PrimaryItemAttribute == StorageItemTypes . Folder ) . ToList ( ) . Count ;
69
+ ViewModel . FilesCount += List . Where ( x => x . PrimaryItemAttribute == StorageItemTypes . File || x . IsArchive ) . ToList ( ) . Count ;
70
+ ViewModel . FoldersCount += List . Where ( x => x . PrimaryItemAttribute == StorageItemTypes . Folder && ! x . IsArchive ) . ToList ( ) . Count ;
71
71
72
72
long totalSize = 0 ;
73
73
long filesSize = List . Where ( x => x . PrimaryItemAttribute == StorageItemTypes . File ) . Sum ( x => x . FileSizeBytes ) ;
You can’t perform that action at this time.
0 commit comments