[V3 Launcher] don't get cli flags if no instances are found (#1497)

Don't get cli flags unless there is an instance to get
This commit is contained in:
bobloy 2018-04-15 19:20:59 -04:00 committed by palmtree5
parent 82146eda3d
commit 9f7bf8d1a2

View File

@ -287,14 +287,14 @@ def main_menu():
choice = user_choice()
if choice == "1":
instance = instance_menu()
cli_flags = cli_flag_getter()
if instance:
cli_flags = cli_flag_getter()
run_red(instance, autorestart=True, cliflags=cli_flags)
wait()
elif choice == "2":
instance = instance_menu()
cli_flags = cli_flag_getter()
if instance:
cli_flags = cli_flag_getter()
run_red(instance, autorestart=False, cliflags=cli_flags)
wait()
elif choice == "3":