mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-14 04:38:20 +10:00
gui_sys_patch_start.py: Exit on KDK failure
Nothing to recover from, best to close the app
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user