Skip to content

Commit 4b58c2d

Browse files
authored
Fix: Disable media preview for archive items (#14021)
1 parent 00543d8 commit 4b58c2d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Files.App/ViewModels/UserControls/InfoPaneViewModel.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ private async Task<UserControl> GetBuiltInPreviewControlAsync(ListedItem item, b
206206
var ext = item.FileExtension.ToLowerInvariant();
207207

208208
if (!item.IsFtpItem &&
209+
contentPageContextService.PageType != ContentPageTypes.ZipFolder &&
209210
(FileExtensionHelpers.IsAudioFile(ext) || FileExtensionHelpers.IsVideoFile(ext)))
210211
{
211212
var model = new MediaPreviewViewModel(item);

src/Files.Core.SourceGenerator/Files.Core.SourceGenerator.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</PropertyGroup>
1212

1313
<ItemGroup>
14-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.8.0" PrivateAssets="all" />
14+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.5.0" PrivateAssets="all" />
1515
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.4" PrivateAssets="all" />
1616
<PackageReference Include="PolySharp" Version="1.13.2" PrivateAssets="all" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive" />
1717
</ItemGroup>

0 commit comments

Comments
 (0)