mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-13 11:09:06 +00:00
Use app fallback logo
This commit is contained in:
@@ -20,6 +20,7 @@ using QuickLook.Common.Helpers;
|
||||
using QuickLook.Common.Plugin;
|
||||
using QuickLook.Plugin.AppViewer.ApkPackageParser;
|
||||
using QuickLook.Plugin.AppViewer.IpaPackageParser;
|
||||
using System;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
@@ -78,7 +79,7 @@ public partial class IpaInfoPanel : UserControl, IAppInfoPanel
|
||||
modDate.Text = last.ToString(CultureInfo.CurrentCulture);
|
||||
permissions.ItemsSource = ipaInfo.Permissions;
|
||||
|
||||
if (ipaInfo.Logo != null)
|
||||
if (!ipaInfo.HasIcon)
|
||||
{
|
||||
using var stream = new MemoryStream(ipaInfo.Logo);
|
||||
var icon = new BitmapImage();
|
||||
@@ -89,6 +90,10 @@ public partial class IpaInfoPanel : UserControl, IAppInfoPanel
|
||||
icon.Freeze();
|
||||
image.Source = icon;
|
||||
}
|
||||
else
|
||||
{
|
||||
image.Source = new BitmapImage(new Uri("pack://application:,,,/QuickLook.Plugin.AppViewer;component/Resources/ios.png"));
|
||||
}
|
||||
|
||||
_context.IsBusy = false;
|
||||
});
|
||||
|
Reference in New Issue
Block a user