GUI: Implement update flow

This commit is contained in:
Mykola Grymalyuk
2023-05-15 11:10:12 -06:00
parent a7bfef5ed7
commit 2f12236ac8
9 changed files with 81 additions and 7 deletions

View File

@@ -6,7 +6,6 @@ import logging
import threading
from pathlib import Path
from resources.gui import gui_main
from resources.wx_gui import gui_entry
from resources import (
constants,
@@ -39,7 +38,6 @@ class OpenCoreLegacyPatcher:
self._generate_base_data()
if utilities.check_cli_args() is None:
# gui_main.wx_python_gui(self.constants).main_menu(None)
gui_entry.EntryPoint(self.constants).start()
@@ -101,7 +99,7 @@ class OpenCoreLegacyPatcher:
logging.info("- Detected arguments, switching to CLI mode")
self.constants.gui_mode = True # Assumes no user interaction is required
ignore_args = ["--auto_patch", "--gui_patch", "--gui_unpatch"]
ignore_args = ["--auto_patch", "--gui_patch", "--gui_unpatch", "--update_installed"]
if not any(x in sys.argv for x in ignore_args):
self.constants.current_path = Path.cwd()
self.constants.cli_mode = True