mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-21 06:30:52 +10:00
gui_sys_patch.py: Disable return during patch
This commit is contained in:
@@ -367,6 +367,7 @@ class SysPatchFrame(wx.Frame):
|
|||||||
return
|
return
|
||||||
|
|
||||||
self._generate_modal(patches, "Root Patching")
|
self._generate_modal(patches, "Root Patching")
|
||||||
|
self.return_button.Disable()
|
||||||
|
|
||||||
thread = threading.Thread(target=self._start_root_patching, args=(patches,))
|
thread = threading.Thread(target=self._start_root_patching, args=(patches,))
|
||||||
thread.start()
|
thread.start()
|
||||||
@@ -392,6 +393,7 @@ class SysPatchFrame(wx.Frame):
|
|||||||
def revert_root_patching(self, patches: dict):
|
def revert_root_patching(self, patches: dict):
|
||||||
logging.info("Reverting root patches")
|
logging.info("Reverting root patches")
|
||||||
self._generate_modal(patches, "Revert Root Patches")
|
self._generate_modal(patches, "Revert Root Patches")
|
||||||
|
self.return_button.Disable()
|
||||||
|
|
||||||
thread = threading.Thread(target=self._revert_root_patching, args=(patches,))
|
thread = threading.Thread(target=self._revert_root_patching, args=(patches,))
|
||||||
thread.start()
|
thread.start()
|
||||||
|
|||||||
Reference in New Issue
Block a user