From 451262d50b52835240a5a94b33b11fd153d63b0d Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk Date: Wed, 17 May 2023 15:11:01 -0600 Subject: [PATCH] GUI: Avoid building if host is unsupported --- resources/wx_gui/gui_macos_installer_flash.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/resources/wx_gui/gui_macos_installer_flash.py b/resources/wx_gui/gui_macos_installer_flash.py index 45fae96d2..fdf717db8 100644 --- a/resources/wx_gui/gui_macos_installer_flash.py +++ b/resources/wx_gui/gui_macos_installer_flash.py @@ -316,7 +316,11 @@ class macOSInstallerFlashFrame(wx.Frame): progress_bar.SetValue(estimated_size) - # Notify user + if gui_support.CheckProperties(self.constants).host_can_build() is False: + wx.MessageBox("Installer created successfully! If you want to install OpenCore to this USB, you will need to change the Target Model in settings", "Successfully created the macOS installer!", wx.OK | wx.ICON_INFORMATION) + self.on_return_to_main_menu() + return + answer = wx.MessageBox("Installer created successfully, would you like to continue and Install OpenCore to this disk?", "Successfully created the macOS installer!", wx.YES_NO | wx.ICON_QUESTION) if answer != wx.YES: self.on_return_to_main_menu()