Skip to content

Commit b232100

Browse files
committed
Fix startup error message when not able to register hotkey being English-only
1 parent aad9fdc commit b232100

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Flow.Launcher/App.xaml.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,20 +81,21 @@ await Stopwatch.NormalAsync("|App.OnStartup|Startup cost", async () =>
8181

8282
await PluginManager.InitializePluginsAsync(API);
8383
await imageLoadertask;
84-
84+
8585
var window = new MainWindow(_settings, _mainVM);
8686

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

8989
Current.MainWindow = window;
9090
Current.MainWindow.Title = Constant.FlowLauncher;
9191

92-
HotKeyMapper.Initialize(_mainVM);
93-
9492
// todo temp fix for instance code logic
9593
// load plugin before change language, because plugin language also needs be changed
9694
InternationalizationManager.Instance.Settings = _settings;
9795
InternationalizationManager.Instance.ChangeLanguage(_settings.Language);
96+
97+
HotKeyMapper.Initialize(_mainVM);
98+
9899
// main windows needs initialized before theme change because of blur settings
99100
ThemeManager.Instance.Settings = _settings;
100101
ThemeManager.Instance.ChangeTheme(_settings.Theme);

0 commit comments

Comments
 (0)