mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
fix uwp preview image
This commit is contained in:
parent
24e526b03d
commit
9cdbb3ada1
1 changed files with 10 additions and 2 deletions
|
|
@ -33,7 +33,6 @@ namespace Flow.Launcher.ViewModel
|
|||
{
|
||||
PreviewExtension = PreviewExtension.ToLowerInvariant();
|
||||
}
|
||||
else if ()
|
||||
|
||||
if (Result.Glyph is { FontFamily: not null } glyph)
|
||||
{
|
||||
|
|
@ -222,7 +221,16 @@ namespace Flow.Launcher.ViewModel
|
|||
private async Task LoadPreviewImageAsync()
|
||||
{
|
||||
var imagePath = Result.PreviewImage ?? Result.IcoPath;
|
||||
PreviewImage = await ImageLoader.LoadAsync(imagePath, true).ConfigureAwait(false);
|
||||
if (imagePath == null && Result.Icon != null)
|
||||
{
|
||||
// For UWP programs from program plugin
|
||||
// TODO: Consider https://github.com/Flow-Launcher/Flow.Launcher/pull/1492#issuecomment-1304829947
|
||||
PreviewImage = Result.Icon();
|
||||
}
|
||||
else
|
||||
{
|
||||
PreviewImage = await ImageLoader.LoadAsync(imagePath, true).ConfigureAwait(false);
|
||||
}
|
||||
}
|
||||
|
||||
public Result Result { get; }
|
||||
|
|
|
|||
Loading…
Reference in a new issue