Skip to content

Commit 04c92b0

Browse files
committed
Delay till assign to Current.MainWindow
1 parent 739bf20 commit 04c92b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Flow.Launcher/App.xaml.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,13 @@ await Stopwatch.NormalAsync("|App.OnStartup|Startup cost", async () =>
7878
await PluginManager.InitializePlugins(API);
7979
var window = new MainWindow(_settings, _mainVM);
8080

81-
HotKeyMapper.Initialize(_mainVM);
8281

8382
Log.Info($"|App.OnStartup|Dependencies Info:{ErrorReporting.DependenciesInfo()}");
8483

8584
Current.MainWindow = window;
8685
Current.MainWindow.Title = Constant.FlowLauncher;
86+
87+
HotKeyMapper.Initialize(_mainVM);
8788

8889
// happlebao todo temp fix for instance code logic
8990
// load plugin before change language, because plugin language also needs be changed

0 commit comments

Comments
 (0)