From 74e523633d60cdd4480d658451b0973657d4dbc6 Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk Date: Thu, 7 Apr 2022 21:08:50 -0600 Subject: [PATCH] main.py: Clean up code --- resources/main.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/resources/main.py b/resources/main.py index 735eca6de..b887fa55b 100644 --- a/resources/main.py +++ b/resources/main.py @@ -13,8 +13,7 @@ class OpenCoreLegacyPatcher: def __init__(self, launch_gui=False): print("- Loading...") self.constants = constants.Constants() - if launch_gui is True: - self.constants.wxpython_variant = True + self.constants.wxpython_variant = launch_gui self.generate_base_data() if utilities.check_cli_args() is None: if launch_gui is True: @@ -50,7 +49,7 @@ class OpenCoreLegacyPatcher: self.constants.payload_path = sys._MEIPASS / Path("payloads") arguments.arguments().parse_arguments(self.constants) else: - print("- No arguments present, loading TUI") + print(f"- No arguments present, loading {'GUI' if self.constants.wxpython_variant is True else 'TUI'} mode") def main_menu(self): response = None