Delay till assign to Current.MainWindow

This commit is contained in:
Hongtao Zhang 2021-12-15 20:39:45 -06:00
parent 739bf2036e
commit 04c92b05ee

View file

@ -78,12 +78,13 @@ namespace Flow.Launcher
await PluginManager.InitializePlugins(API);
var window = new MainWindow(_settings, _mainVM);
HotKeyMapper.Initialize(_mainVM);
Log.Info($"|App.OnStartup|Dependencies Info:{ErrorReporting.DependenciesInfo()}");
Current.MainWindow = window;
Current.MainWindow.Title = Constant.FlowLauncher;
HotKeyMapper.Initialize(_mainVM);
// happlebao todo temp fix for instance code logic
// load plugin before change language, because plugin language also needs be changed