Skip to content

Commit

Permalink
Feature: Added support for opening ISO files (#11217)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaira2 authored Feb 8, 2023
1 parent 41d1f9a commit bc3eff5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/Files.App/Views/LayoutModes/DetailsLayoutBrowser.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -675,13 +675,15 @@
<Grid
x:Name="ItemTagGrid"
Width="{Binding ColumnsViewModel.TagColumn.LengthIncludingGridSplitter.Value, ElementName=PageRoot, Mode=OneWay}"
Padding="0,0,12,0"
HorizontalAlignment="Stretch"
VerticalAlignment="Center"
Visibility="{Binding ColumnsViewModel.TagColumn.Visibility, ElementName=PageRoot, Mode=OneWay}">
<ItemsRepeater
x:Name="TagsRepeater"
x:Load="{x:Bind HasTags, Mode=OneWay}"
ItemsSource="{x:Bind FileTagsUI, Mode=OneWay}">
ItemsSource="{x:Bind FileTagsUI, Mode=OneWay}"
Visibility="{x:Bind FileTagsUI, Converter={StaticResource EmptyObjectToObjectConverter}, Mode=OneWay}">
<ItemsRepeater.Layout>
<StackLayout Orientation="Horizontal" Spacing="4" />
</ItemsRepeater.Layout>
Expand Down
4 changes: 2 additions & 2 deletions src/Files.Backend/Helpers/FileExtensionHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public static bool IsPowerShellFile(string fileExtensionToCheck)
/// <returns><c>true</c> if the fileExtensionToCheck is a zip bundle file;
/// otherwise <c>false</c>.</returns>
public static bool IsZipFile(string? fileExtensionToCheck)
=> HasExtension(fileExtensionToCheck, ".zip", ".msix", ".appx", ".msixbundle", ".7z", ".rar", ".tar");
=> HasExtension(fileExtensionToCheck, ".zip", ".msix", ".appx", ".msixbundle", ".7z", ".rar", ".tar", ".iso");

public static bool IsBrowsableZipFile(string? filePath, out string? ext)
{
Expand All @@ -54,7 +54,7 @@ public static bool IsBrowsableZipFile(string? filePath, out string? ext)
return false;
}

ext = new[] { ".zip", ".7z", ".rar", ".tar" } // Only ext we want to browse
ext = new[] { ".zip", ".7z", ".rar", ".tar" , ".iso"} // Only ext we want to browse
.FirstOrDefault(x => filePath.Contains(x, StringComparison.OrdinalIgnoreCase));
return ext is not null;
}
Expand Down

0 comments on commit bc3eff5

Please sign in to comment.