From e133beee3636f98d408ed35c9e3267d8179db01d Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk Date: Mon, 29 May 2023 09:54:49 -0600 Subject: [PATCH] gui_sys_patch_start.py: Exit on KDK failure Nothing to recover from, best to close the app --- resources/wx_gui/gui_support.py | 1 + resources/wx_gui/gui_sys_patch_start.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/wx_gui/gui_support.py b/resources/wx_gui/gui_support.py index a8a88961b..343042c3e 100644 --- a/resources/wx_gui/gui_support.py +++ b/resources/wx_gui/gui_support.py @@ -106,6 +106,7 @@ class CheckProperties: def __init__(self, global_constants: constants.Constants) -> None: self.constants: constants.Constants = global_constants + def host_can_build(self): """ Check if host supports building OpenCore configs diff --git a/resources/wx_gui/gui_sys_patch_start.py b/resources/wx_gui/gui_sys_patch_start.py index 565d798a5..de8616324 100644 --- a/resources/wx_gui/gui_sys_patch_start.py +++ b/resources/wx_gui/gui_sys_patch_start.py @@ -104,6 +104,7 @@ class SysPatchStartFrame(wx.Frame): if kdk_download_obj.download_complete is False: return False + logging.info("KDK download complete, validating with hdiutil") header.SetLabel(f"Validating KDK: {self.kdk_obj.kdk_url_build}") header.Centre(wx.HORIZONTAL) @@ -219,8 +220,7 @@ class SysPatchStartFrame(wx.Frame): if self.patches["Settings: Kernel Debug Kit missing"] is True: if self._kdk_download(self) is False: - self.on_return_to_main_menu() - return + sys.exit(1) self._generate_modal(self.patches, "Root Patching") self.return_button.Disable()