edit signature for CacheContainImage

This commit is contained in:
Hongtao Zhang 2022-10-30 22:07:04 -05:00
parent 28256a75bf
commit 101593a419
No known key found for this signature in database
GPG key ID: 75F655B91C7AC9BB

View file

@ -244,9 +244,9 @@ namespace Flow.Launcher.Infrastructure.Image
option);
}
public static bool CacheContainImage(string path)
public static bool CacheContainImage(string path, bool loadFullImage = false)
{
return ImageCache.ContainsKey(path, false) && ImageCache[path, false] != null;
return ImageCache.ContainsKey(path, false) && ImageCache[path, loadFullImage] != null;
}
public static async ValueTask<ImageSource> LoadAsync(string path, bool loadFullImage = false)