Improve PDF magic detection

This commit is contained in:
ema
2025-06-22 21:12:35 +08:00
parent f0d55455e4
commit 0168318f39
2 changed files with 9 additions and 8 deletions

View File

@@ -26,8 +26,7 @@ namespace QuickLook.Plugin.PDFViewer;
internal class AsyncPageToThumbnailConverter : IMultiValueConverter
{
private static readonly BitmapImage Loading =
new BitmapImage(
new Uri("pack://application:,,,/QuickLook.Plugin.PdfViewer;component/Resources/loading.png"));
new(new Uri("pack://application:,,,/QuickLook.Plugin.PdfViewer;component/Resources/loading.png"));
public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
{