mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-19 22:00:00 +10:00
GUI: Hide self before prompting
This commit is contained in:
@@ -5,6 +5,7 @@ import traceback
|
|||||||
|
|
||||||
from resources.wx_gui import gui_main_menu, gui_support, gui_sys_patch
|
from resources.wx_gui import gui_main_menu, gui_support, gui_sys_patch
|
||||||
from resources import constants, install
|
from resources import constants, install
|
||||||
|
from data import os_data
|
||||||
|
|
||||||
|
|
||||||
class InstallOCFrame(wx.Frame):
|
class InstallOCFrame(wx.Frame):
|
||||||
@@ -268,7 +269,7 @@ class InstallOCFrame(wx.Frame):
|
|||||||
wx.Yield()
|
wx.Yield()
|
||||||
|
|
||||||
if self.result is True:
|
if self.result is True:
|
||||||
if self.constants.update_stage != gui_support.AutoUpdateStages.INACTIVE:
|
if self.constants.update_stage != gui_support.AutoUpdateStages.INACTIVE and self.constants.detected_os >= os_data.os_data.big_sur:
|
||||||
self.constants.update_stage = gui_support.AutoUpdateStages.ROOT_PATCHING
|
self.constants.update_stage = gui_support.AutoUpdateStages.ROOT_PATCHING
|
||||||
popup_message = wx.MessageDialog(
|
popup_message = wx.MessageDialog(
|
||||||
self,
|
self,
|
||||||
@@ -277,6 +278,7 @@ class InstallOCFrame(wx.Frame):
|
|||||||
)
|
)
|
||||||
popup_message.ShowModal()
|
popup_message.ShowModal()
|
||||||
if popup_message.GetReturnCode() == wx.ID_YES:
|
if popup_message.GetReturnCode() == wx.ID_YES:
|
||||||
|
self.Hide()
|
||||||
gui_sys_patch.SysPatchFrame(
|
gui_sys_patch.SysPatchFrame(
|
||||||
parent=None,
|
parent=None,
|
||||||
title=self.title,
|
title=self.title,
|
||||||
|
|||||||
Reference in New Issue
Block a user