Skip to content

Commit 07c1a0b

Browse files
Init ImageCache from disk
1 parent eaae3b9 commit 07c1a0b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Flow.Launcher.Infrastructure/Image/ImageCache.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public class ImageCache
2828
private const int permissibleFactor = 2;
2929
private SemaphoreSlim semaphore = new(1, 1);
3030

31-
public void Initialization(Dictionary<(string, bool), int> usage)
31+
public void Initialize(Dictionary<(string, bool), int> usage)
3232
{
3333
foreach (var key in usage.Keys)
3434
{

Flow.Launcher.Infrastructure/Image/ImageLoader.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ public static void Initialize()
4040

4141
var usage = LoadStorageToConcurrentDictionary();
4242

43+
ImageCache.Initialize(usage.ToDictionary(x => x.Key, x => x.Value));
44+
4345
foreach (var icon in new[]
4446
{
4547
Constant.DefaultIcon, Constant.MissingImgIcon

0 commit comments

Comments
 (0)