mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-22 17:03:06 +08:00
change init order
This commit is contained in:
parent
86b2391543
commit
46f98ded10
@ -43,6 +43,9 @@ namespace Wox
|
|||||||
Log.Info("|App.OnStartup|Begin Wox startup ----------------------------------------------------");
|
Log.Info("|App.OnStartup|Begin Wox startup ----------------------------------------------------");
|
||||||
RegisterDispatcherUnhandledException();
|
RegisterDispatcherUnhandledException();
|
||||||
|
|
||||||
|
ImageLoader.Initialize();
|
||||||
|
Alphabet.Initialize();
|
||||||
|
|
||||||
var settingVM = new SettingWindowViewModel();
|
var settingVM = new SettingWindowViewModel();
|
||||||
_settings = settingVM.Settings;
|
_settings = settingVM.Settings;
|
||||||
|
|
||||||
@ -52,11 +55,8 @@ namespace Wox
|
|||||||
API = new PublicAPIInstance(settingVM, mainVM);
|
API = new PublicAPIInstance(settingVM, mainVM);
|
||||||
PluginManager.InitializePlugins(API);
|
PluginManager.InitializePlugins(API);
|
||||||
|
|
||||||
ImageLoader.Initialize();
|
|
||||||
Alphabet.Initialize();
|
|
||||||
|
|
||||||
Current.MainWindow = window;
|
Current.MainWindow = window;
|
||||||
Current.MainWindow.Title = Infrastructure.Constant.Wox;
|
Current.MainWindow.Title = Constant.Wox;
|
||||||
|
|
||||||
RegisterExitEvents();
|
RegisterExitEvents();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user