diff --git a/Wox/App.xaml.cs b/Wox/App.xaml.cs index 93607f3e09..121c6c17e4 100644 --- a/Wox/App.xaml.cs +++ b/Wox/App.xaml.cs @@ -42,8 +42,6 @@ namespace Wox { RegisterDispatcherUnhandledException(); - ImageLoader.PreloadImages(); - var storage = new JsonStrorage(); _settings = storage.Load(); @@ -53,6 +51,8 @@ namespace Wox API = new PublicAPIInstance(_settings, vm); PluginManager.InitializePlugins(API); + ImageLoader.PreloadImages(); + Current.MainWindow = window; Current.MainWindow.Title = Infrastructure.Constant.Wox;