mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 19:26:39 +02:00
Remove unnecessary thread switch
This commit is contained in:
@@ -207,18 +207,7 @@ namespace Wox
|
||||
InitialTray();
|
||||
|
||||
Closing += MainWindow_Closing;
|
||||
//since MainWIndow implement IPublicAPI, so we need to finish ctor MainWindow object before
|
||||
//PublicAPI invoke in plugin init methods. E.g FolderPlugin
|
||||
ThreadPool.QueueUserWorkItem(o =>
|
||||
{
|
||||
Thread.Sleep(50);
|
||||
PluginManager.Init(this);
|
||||
});
|
||||
ThreadPool.QueueUserWorkItem(o =>
|
||||
{
|
||||
Thread.Sleep(50);
|
||||
PreLoadImages();
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
void pnlResult_ItemDropEvent(Result result, IDataObject dropDataObject, DragEventArgs args)
|
||||
@@ -245,11 +234,6 @@ namespace Wox
|
||||
return true;
|
||||
}
|
||||
|
||||
private void PreLoadImages()
|
||||
{
|
||||
ImageLoader.ImageLoader.PreloadImages();
|
||||
}
|
||||
|
||||
void pnlResult_RightMouseClickEvent(Result result)
|
||||
{
|
||||
ShowContextMenu(result);
|
||||
|
||||
Reference in New Issue
Block a user