mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 03:36:44 +02:00
Rearrange query execution order
1. remove usage of PushResult 2. rearrange query execution order 3. decouple UserSetting dependency 4. remove instant query 5. remove backkeydown event 6. part of #389
This commit is contained in:
@@ -47,11 +47,14 @@ namespace Wox
|
||||
ThreadPool.SetMinThreads(10, 5);
|
||||
ThreadPool.QueueUserWorkItem(_ => { ImageLoader.ImageLoader.PreloadImages(); });
|
||||
|
||||
MainViewModel mainVM = new MainViewModel();
|
||||
PluginManager.Initialize();
|
||||
UserSettingStorage settings = UserSettingStorage.Instance;
|
||||
MainViewModel mainVM = new MainViewModel(settings);
|
||||
API = new PublicAPIInstance(mainVM);
|
||||
PluginManager.InitializePlugins(API);
|
||||
|
||||
Window = new MainWindow {DataContext = mainVM};
|
||||
NotifyIconManager notifyIconManager = new NotifyIconManager(API);
|
||||
PluginManager.Init(API);
|
||||
CommandArgsFactory.Execute(e.Args.ToList());
|
||||
|
||||
// happlebao todo: the whole setting releated initialization should be put into seperate class/method
|
||||
|
||||
Reference in New Issue
Block a user