diff --git a/UI/Windows/MainWindow.axaml.cs b/UI/Windows/MainWindow.axaml.cs index 687cc3c3..a74b3613 100644 --- a/UI/Windows/MainWindow.axaml.cs +++ b/UI/Windows/MainWindow.axaml.cs @@ -206,7 +206,10 @@ protected override void OnOpened(EventArgs e) _timerBackgroundFlag.Interval = TimeSpan.FromMilliseconds(100); _timerBackgroundFlag.Tick += timerUpdateBackgroundFlag; _timerBackgroundFlag.Start(); - + + //Force focus on window itself, to avoid menu being given focus by default + Focus(); + Task.Run(() => { CommandLineHelper cmdLine = new CommandLineHelper(Program.CommandLineArgs, true); _cmdLine = cmdLine;