Respect loadFullImage Option in ImageCache.cs

This commit is contained in:
Hongtao Zhang 2022-10-30 14:39:57 -05:00
parent cf9dd4addb
commit ffa40b01a4
No known key found for this signature in database
GPG key ID: 75F655B91C7AC9BB

View file

@ -121,7 +121,7 @@ namespace Flow.Launcher.Infrastructure.Image
&& (uriResult.Scheme == Uri.UriSchemeHttp || uriResult.Scheme == Uri.UriSchemeHttps))
{
var image = await LoadRemoteImageAsync(loadFullImage, uriResult);
ImageCache[path, false] = image;
ImageCache[path, loadFullImage] = image;
return new ImageResult(image, ImageType.ImageFile);
}
if (path.StartsWith("data:", StringComparison.OrdinalIgnoreCase))