Load full image from cache

This commit is contained in:
Garulf 2022-09-02 07:38:49 -04:00
parent a53b961406
commit a76304ac51

View file

@ -114,7 +114,10 @@ namespace Flow.Launcher.Infrastructure.Image
{
return new ImageResult(ImageCache[path], ImageType.Cache);
}
if (loadFullImage && ImageCache.ContainsKey(path + ImageType.FullImageFile))
{
return new ImageResult(ImageCache[path + ImageType.FullImageFile], ImageType.Cache);
}
if (path.StartsWith("data:", StringComparison.OrdinalIgnoreCase))
{
var imageSource = new BitmapImage(new Uri(path));