From 4bb2b8bc04f1b3b0ecfc7f87df6780b195bb269b Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk Date: Tue, 9 Aug 2022 09:31:13 -0600 Subject: [PATCH] gui_main.py: avoid reboot prompt on off-model building --- gui/gui_main.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gui/gui_main.py b/gui/gui_main.py index 305cad4a9..346540ef0 100644 --- a/gui/gui_main.py +++ b/gui/gui_main.py @@ -881,7 +881,11 @@ class wx_python_gui: self.frame_modal.SetSize(-1, self.return_to_main_menu.GetPosition().y + self.return_to_main_menu.GetSize().height + 20) if result is True: - self.reboot_system(message="OpenCore has finished installing to disk.\n\nYou will need to reboot and hold the Option key and select OpenCore/Boot EFI's option.\n\nWould you like to reboot?") + if not self.constants.custom_model: + self.reboot_system(message="OpenCore has finished installing to disk.\n\nYou will need to reboot and hold the Option key and select OpenCore/Boot EFI's option.\n\nWould you like to reboot?") + else: + popup_message = wx.MessageDialog(self.frame,f"OpenCore has finished installing to disk.\n\nYou can eject the drive, insert it into the {self.constants.custom_model}, reboot, hold the Option key and select OpenCore/Boot EFI's option.", "Success", wx.OK) + popup_message.ShowModal() def root_patch_menu(self, event=None): # Define Menu