Add logic for detecting if full image exists in cache

This commit is contained in:
Garulf 2022-09-02 07:40:00 -04:00
parent a9d11816f5
commit 29e5b4fcf7

View file

@ -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;
}