gui_sys_patch_start.py: Exit on KDK failure

Nothing to recover from, best to close the app
This commit is contained in:
Mykola Grymalyuk
2023-05-29 09:54:49 -06:00
parent 0388eaa6f2
commit e133beee36
2 changed files with 3 additions and 2 deletions

View File

@@ -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

View File

@@ -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()