fix --port argument when launching the gui (#2445)

This commit is contained in:
Wagner Bruna
2026-09-07 13:00:52 -03:00
committed by GitHub
parent 65512740ac
commit 78c1294245
+5
View File
@@ -11504,6 +11504,11 @@ def main(launch_args, default_args):
else:
exitcounter = 999
exit_with_error(2,"Specified kcpp config file invalid or not found.")
# --port only sets args.port, but the GUI tracks port_param, so mirror it there before convert_invalid_args syncs the two
if args.port != defaultport:
args.port_param = args.port
args = convert_invalid_args(args)
#positional handling for kcpps files (drag and drop)