mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Try to load full image from cache first
This commit is contained in:
parent
a76304ac51
commit
a9d11816f5
1 changed files with 5 additions and 4 deletions
|
|
@ -110,14 +110,15 @@ namespace Flow.Launcher.Infrastructure.Image
|
|||
{
|
||||
return new ImageResult(ImageCache[Constant.MissingImgIcon], ImageType.Error);
|
||||
}
|
||||
if (ImageCache.ContainsKey(path))
|
||||
{
|
||||
return new ImageResult(ImageCache[path], ImageType.Cache);
|
||||
}
|
||||
if (loadFullImage && ImageCache.ContainsKey(path + ImageType.FullImageFile))
|
||||
{
|
||||
return new ImageResult(ImageCache[path + ImageType.FullImageFile], ImageType.Cache);
|
||||
}
|
||||
if (ImageCache.ContainsKey(path))
|
||||
{
|
||||
return new ImageResult(ImageCache[path], ImageType.Cache);
|
||||
}
|
||||
|
||||
if (path.StartsWith("data:", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
var imageSource = new BitmapImage(new Uri(path));
|
||||
|
|
|
|||
Loading…
Reference in a new issue