mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
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:
parent
8605374514
commit
1dbc061c2c
1 changed files with 3 additions and 3 deletions
|
|
@ -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()}");
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue