mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Add logic for detecting if full image exists in cache
This commit is contained in:
parent
a9d11816f5
commit
29e5b4fcf7
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue