Fix `--lua`/`--luaconsole` causing that window to open before MainForm

This commit is contained in:
YoshiRulz 2024-09-24 12:25:16 +10:00
parent 5f835164de
commit 1d8c088261
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 12 additions and 9 deletions

View File

@ -726,6 +726,8 @@ namespace BizHawk.Client.EmuHawk
};
}
Shown += (_, _) =>
{
//start Lua Console if requested in the command line arguments
if (_argParser.luaConsole)
{
@ -736,6 +738,7 @@ namespace BizHawk.Client.EmuHawk
{
_ = Tools.LuaConsole.LoadByFileExtension(_argParser.luaScript.MakeAbsolute(), out _);
}
};
SetStatusBar();