mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-21 14:40:52 +10:00
gui_main.py: Add prompt after CIM
This commit is contained in:
@@ -62,7 +62,7 @@ To run the project from source, see here: [Build and run from source](./SOURCE.m
|
|||||||
* [vit9696](https://github.com/vit9696)
|
* [vit9696](https://github.com/vit9696)
|
||||||
* Endless amount of help troubleshooting, determining fixes and writing patches
|
* Endless amount of help troubleshooting, determining fixes and writing patches
|
||||||
* [ASentientBot](https://github.com/ASentientBot), [EduCovas](https://github.com/educovas) and [ASentientHedgehog](https://github.com/moosethegoose2213)
|
* [ASentientBot](https://github.com/ASentientBot), [EduCovas](https://github.com/educovas) and [ASentientHedgehog](https://github.com/moosethegoose2213)
|
||||||
* Legacy Acceleration Patch set and documentation
|
* Legacy Acceleration Patch set and documentation, [Moraea Organization](https://github.com/moraea)
|
||||||
* [cdf](https://github.com/cdf)
|
* [cdf](https://github.com/cdf)
|
||||||
* Mac Pro on OpenCore Patch set and documentation
|
* Mac Pro on OpenCore Patch set and documentation
|
||||||
* [Innie](https://github.com/cdf/Innie) and [NightShiftEnabler](https://github.com/cdf/NightShiftEnabler)
|
* [Innie](https://github.com/cdf/Innie) and [NightShiftEnabler](https://github.com/cdf/NightShiftEnabler)
|
||||||
|
|||||||
+17
-2
@@ -25,6 +25,7 @@ class wx_python_gui:
|
|||||||
self.constants.gui_mode = True
|
self.constants.gui_mode = True
|
||||||
self.walkthrough_mode = False
|
self.walkthrough_mode = False
|
||||||
self.finished_auto_patch = False
|
self.finished_auto_patch = False
|
||||||
|
self.finished_cim_process = False
|
||||||
self.target_disk = ""
|
self.target_disk = ""
|
||||||
|
|
||||||
# Backup stdout for usage with wxPython
|
# Backup stdout for usage with wxPython
|
||||||
@@ -1505,6 +1506,21 @@ class wx_python_gui:
|
|||||||
self.progress_bar.SetValue(16000)
|
self.progress_bar.SetValue(16000)
|
||||||
self.progress_label.SetLabel(f"Finished Running Installer Creation Script")
|
self.progress_label.SetLabel(f"Finished Running Installer Creation Script")
|
||||||
self.progress_label.Centre(wx.HORIZONTAL)
|
self.progress_label.Centre(wx.HORIZONTAL)
|
||||||
|
if self.finished_cim_process is True:
|
||||||
|
self.finished_cim_process = False
|
||||||
|
# Ask if user wants to build and install OpenCore to USB
|
||||||
|
self.dialog = wx.MessageDialog(
|
||||||
|
parent=self.frame,
|
||||||
|
message="Would you like to continue and Install OpenCore to this disk?",
|
||||||
|
caption="Sucessfully created the macOS installer!",
|
||||||
|
style=wx.YES_NO | wx.ICON_QUESTION
|
||||||
|
)
|
||||||
|
self.dialog.SetYesNoLabels("Install OpenCore to disk", "Skip")
|
||||||
|
responce = self.dialog.ShowModal()
|
||||||
|
if responce == wx.ID_YES:
|
||||||
|
self.constants.start_build_install = True
|
||||||
|
self.build_install_menu()
|
||||||
|
self.finished_cim_process = False
|
||||||
|
|
||||||
else:
|
else:
|
||||||
print("- Failed to create installer script")
|
print("- Failed to create installer script")
|
||||||
@@ -1521,8 +1537,7 @@ class wx_python_gui:
|
|||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
print("- Installing Root Patcher to drive")
|
print("- Installing Root Patcher to drive")
|
||||||
self.install_installer_pkg(self.target_disk)
|
self.install_installer_pkg(self.target_disk)
|
||||||
popup_message = wx.MessageDialog(self.frame, "Sucessfully created a macOS installer!\nYou can now install OpenCore onto this drive", "Success", wx.OK)
|
self.finished_cim_process = True
|
||||||
popup_message.ShowModal()
|
|
||||||
else:
|
else:
|
||||||
print("- Failed to create macOS installer")
|
print("- Failed to create macOS installer")
|
||||||
popup = wx.MessageDialog(self.frame, f"Failed to create macOS installer\n\nOutput: {output}\n\nError: {error}", "Error", wx.OK | wx.ICON_ERROR)
|
popup = wx.MessageDialog(self.frame, f"Failed to create macOS installer\n\nOutput: {output}\n\nError: {error}", "Error", wx.OK | wx.ICON_ERROR)
|
||||||
|
|||||||
Reference in New Issue
Block a user