Remove parallel loading of icons

This is causing null exceptions on Wox startup and will lead
to thumbnails not loaded at all.
This commit is contained in:
SysC0mp 2020-05-01 11:56:30 +02:00
parent 8605374514
commit 1dbc061c2c

View file

@ -48,10 +48,10 @@ namespace Flow.Launcher.Infrastructure.Image
{
Stopwatch.Normal("|ImageLoader.Initialize|Preload images cost", () =>
{
ImageCache.Usage.AsParallel().ForAll(x =>
foreach (string key in _imageCache.Usage.Keys)
{
Load(x.Key);
});
Load(key);
}
});
Log.Info($"|ImageLoader.Initialize|Number of preload images is <{ImageCache.Usage.Count}>, Images Number: {ImageCache.CacheSize()}, Unique Items {ImageCache.UniqueImagesInCache()}");
});