mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-18 21:30:00 +10:00
gui_main.py: Avoid Prompting on unsupported configs
This commit is contained in:
@@ -9,6 +9,10 @@ Our project's main goal is to breath new life to Macs no longer supported by App
|
|||||||
|
|
||||||
----------
|
----------
|
||||||
|
|
||||||
|
  
|
||||||
|
|
||||||
|
----------
|
||||||
|
|
||||||
Noteworthy features of OpenCore Legacy Patcher:
|
Noteworthy features of OpenCore Legacy Patcher:
|
||||||
|
|
||||||
* Support for macOS Big Sur and Monterey
|
* Support for macOS Big Sur and Monterey
|
||||||
|
|||||||
+19
-14
@@ -1507,20 +1507,25 @@ class wx_python_gui:
|
|||||||
self.progress_label.Centre(wx.HORIZONTAL)
|
self.progress_label.Centre(wx.HORIZONTAL)
|
||||||
if self.finished_cim_process is True:
|
if self.finished_cim_process is True:
|
||||||
self.finished_cim_process = False
|
self.finished_cim_process = False
|
||||||
# Ask if user wants to build and install OpenCore to USB
|
# Only prompt user with option to install OC to disk if
|
||||||
self.dialog = wx.MessageDialog(
|
# the model is supported.
|
||||||
parent=self.frame,
|
if self.constants.allow_oc_everywhere is False and \
|
||||||
message="Would you like to continue and Install OpenCore to this disk?",
|
self.constants.custom_model is None and \
|
||||||
caption="Sucessfully created the macOS installer!",
|
self.computer.real_model not in model_array.SupportedSMBIOS:
|
||||||
style=wx.YES_NO | wx.ICON_QUESTION
|
popup_message = wx.MessageDialog(self.frame, "Sucessfully created a macOS installer!", "Success", wx.OK)
|
||||||
)
|
popup_message.ShowModal()
|
||||||
self.dialog.SetYesNoLabels("Install OpenCore to disk", "Skip")
|
else:
|
||||||
responce = self.dialog.ShowModal()
|
self.dialog = wx.MessageDialog(
|
||||||
if responce == wx.ID_YES:
|
parent=self.frame,
|
||||||
self.constants.start_build_install = True
|
message="Would you like to continue and Install OpenCore to this disk?",
|
||||||
self.build_install_menu()
|
caption="Sucessfully created the macOS installer!",
|
||||||
self.finished_cim_process = False
|
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()
|
||||||
else:
|
else:
|
||||||
print("- Failed to create installer script")
|
print("- Failed to create installer script")
|
||||||
self.return_to_main_menu.Enable()
|
self.return_to_main_menu.Enable()
|
||||||
|
|||||||
Reference in New Issue
Block a user