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,16 +726,19 @@ namespace BizHawk.Client.EmuHawk
};
}
//start Lua Console if requested in the command line arguments
if (_argParser.luaConsole)
Shown += (_, _) =>
{
OpenLuaConsole();
}
//load Lua Script if requested in the command line arguments
if (_argParser.luaScript != null)
{
_ = Tools.LuaConsole.LoadByFileExtension(_argParser.luaScript.MakeAbsolute(), out _);
}
//start Lua Console if requested in the command line arguments
if (_argParser.luaConsole)
{
OpenLuaConsole();
}
//load Lua Script if requested in the command line arguments
if (_argParser.luaScript != null)
{
_ = Tools.LuaConsole.LoadByFileExtension(_argParser.luaScript.MakeAbsolute(), out _);
}
};
SetStatusBar();