Skip to content

Commit

Permalink
Fix: Disable media preview for archive items (files-community#14021)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaira2 authored Nov 22, 2023
1 parent 00543d8 commit 4b58c2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Files.App/ViewModels/UserControls/InfoPaneViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ private async Task<UserControl> GetBuiltInPreviewControlAsync(ListedItem item, b
var ext = item.FileExtension.ToLowerInvariant();

if (!item.IsFtpItem &&
contentPageContextService.PageType != ContentPageTypes.ZipFolder &&
(FileExtensionHelpers.IsAudioFile(ext) || FileExtensionHelpers.IsVideoFile(ext)))
{
var model = new MediaPreviewViewModel(item);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.8.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.5.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.4" PrivateAssets="all" />
<PackageReference Include="PolySharp" Version="1.13.2" PrivateAssets="all" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive" />
</ItemGroup>
Expand Down

0 comments on commit 4b58c2d

Please sign in to comment.