From b34eaccd35fcddc0252c446edb27b3742038423e Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk Date: Tue, 11 Apr 2023 13:54:45 -0600 Subject: [PATCH] main.py: move threading --- resources/main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/main.py b/resources/main.py index dcb7c0da7..75daeb699 100644 --- a/resources/main.py +++ b/resources/main.py @@ -90,6 +90,7 @@ class OpenCoreLegacyPatcher: # Generate defaults defaults.GenerateDefaults(self.computer.real_model, True, self.constants) + threading.Thread(target=analytics_handler.Analytics, args=(self.constants,)).start() if utilities.check_cli_args() is None: logging.info(f"- No arguments present, loading {'GUI' if self.constants.wxpython_variant is True else 'TUI'} mode") @@ -111,6 +112,4 @@ class OpenCoreLegacyPatcher: while self.constants.unpack_thread.is_alive(): time.sleep(0.1) - threading.Thread(target=analytics_handler.Analytics, args=(self.constants,)).start() - arguments.arguments(self.constants)