mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 03:07:04 +02:00
Misc
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using System.Windows;
|
||||
using Wox.CommandArgs;
|
||||
using Wox.Core.Plugin;
|
||||
@@ -34,9 +35,9 @@ namespace Wox
|
||||
DispatcherUnhandledException += ErrorReporting.DispatcherUnhandledException;
|
||||
AppDomain.CurrentDomain.UnhandledException += ErrorReporting.UnhandledExceptionHandle;
|
||||
|
||||
//ThreadPool.QueueUserWorkItem(o => { ImageLoader.ImageLoader.PreloadImages(); });
|
||||
Window = new MainWindow();
|
||||
PluginManager.Init(Window);
|
||||
ImageLoader.ImageLoader.PreloadImages();
|
||||
CommandArgsFactory.Execute(e.Args.ToList());
|
||||
}
|
||||
|
||||
|
||||
@@ -70,7 +70,7 @@ namespace Wox.ImageLoader
|
||||
if (!imageCache.ContainsKey(image.Key))
|
||||
{
|
||||
KeyValuePair<string, int> copyedImg = image;
|
||||
App.Window.Dispatcher.Invoke(new Action(() => imageCache.Add(copyedImg.Key, img)));
|
||||
imageCache.Add(copyedImg.Key, img);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user