Skip to content

Commit

Permalink
Fix: Fixed crash that would occur when pressing Ctrl+E on the Home pa…
Browse files Browse the repository at this point in the history
…ge (#12806)
  • Loading branch information
hishitetsu authored Jun 30, 2023
1 parent 6632a87 commit 7f14d5e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Files.App/Helpers/ArchiveHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ public static class ArchiveHelpers

public static bool CanDecompress(IReadOnlyList<ListedItem> selectedItems)
{
return selectedItems.Any() && selectedItems.All(x => x.IsArchive)
|| selectedItems.All(x => x.PrimaryItemAttribute == StorageItemTypes.File && FileExtensionHelpers.IsZipFile(x.FileExtension));
return selectedItems.Any() &&
(selectedItems.All(x => x.IsArchive)
|| selectedItems.All(x => x.PrimaryItemAttribute == StorageItemTypes.File && FileExtensionHelpers.IsZipFile(x.FileExtension)));
}

public static bool CanCompress(IReadOnlyList<ListedItem> selectedItems)
Expand Down

0 comments on commit 7f14d5e

Please sign in to comment.