change init order

This commit is contained in:
bao-qian 2017-02-12 17:10:42 +00:00
parent 86b2391543
commit 46f98ded10

View File

@ -43,6 +43,9 @@ namespace Wox
Log.Info("|App.OnStartup|Begin Wox startup ----------------------------------------------------");
RegisterDispatcherUnhandledException();
ImageLoader.Initialize();
Alphabet.Initialize();
var settingVM = new SettingWindowViewModel();
_settings = settingVM.Settings;
@ -52,11 +55,8 @@ namespace Wox
API = new PublicAPIInstance(settingVM, mainVM);
PluginManager.InitializePlugins(API);
ImageLoader.Initialize();
Alphabet.Initialize();
Current.MainWindow = window;
Current.MainWindow.Title = Infrastructure.Constant.Wox;
Current.MainWindow.Title = Constant.Wox;
RegisterExitEvents();