mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-21 06:30:52 +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:
|
def __init__(self, global_constants: constants.Constants) -> None:
|
||||||
self.constants: constants.Constants = global_constants
|
self.constants: constants.Constants = global_constants
|
||||||
|
|
||||||
|
|
||||||
def host_can_build(self):
|
def host_can_build(self):
|
||||||
"""
|
"""
|
||||||
Check if host supports building OpenCore configs
|
Check if host supports building OpenCore configs
|
||||||
|
|||||||
@@ -104,6 +104,7 @@ class SysPatchStartFrame(wx.Frame):
|
|||||||
if kdk_download_obj.download_complete is False:
|
if kdk_download_obj.download_complete is False:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
logging.info("KDK download complete, validating with hdiutil")
|
||||||
header.SetLabel(f"Validating KDK: {self.kdk_obj.kdk_url_build}")
|
header.SetLabel(f"Validating KDK: {self.kdk_obj.kdk_url_build}")
|
||||||
header.Centre(wx.HORIZONTAL)
|
header.Centre(wx.HORIZONTAL)
|
||||||
|
|
||||||
@@ -219,8 +220,7 @@ class SysPatchStartFrame(wx.Frame):
|
|||||||
|
|
||||||
if self.patches["Settings: Kernel Debug Kit missing"] is True:
|
if self.patches["Settings: Kernel Debug Kit missing"] is True:
|
||||||
if self._kdk_download(self) is False:
|
if self._kdk_download(self) is False:
|
||||||
self.on_return_to_main_menu()
|
sys.exit(1)
|
||||||
return
|
|
||||||
|
|
||||||
self._generate_modal(self.patches, "Root Patching")
|
self._generate_modal(self.patches, "Root Patching")
|
||||||
self.return_button.Disable()
|
self.return_button.Disable()
|
||||||
|
|||||||
Reference in New Issue
Block a user