From 29e5b4fcf74308e294c5d3adc5406df3ca5fb838 Mon Sep 17 00:00:00 2001 From: Garulf <535299+Garulf@users.noreply.github.com> Date: Fri, 2 Sep 2022 07:40:00 -0400 Subject: [PATCH] Add logic for detecting if full image exists in cache --- Flow.Launcher.Infrastructure/Image/ImageLoader.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Flow.Launcher.Infrastructure/Image/ImageLoader.cs b/Flow.Launcher.Infrastructure/Image/ImageLoader.cs index 89f982b90..198ad5933 100644 --- a/Flow.Launcher.Infrastructure/Image/ImageLoader.cs +++ b/Flow.Launcher.Infrastructure/Image/ImageLoader.cs @@ -219,8 +219,12 @@ namespace Flow.Launcher.Infrastructure.Image option); } - public static bool CacheContainImage(string path) + public static bool CacheContainImage(string path, bool fullImage = false) { + if (fullImage) + { + return ImageCache.ContainsKey(path + ImageType.FullImageFile); + } return ImageCache.ContainsKey(path) && ImageCache[path] != null; }