mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-14 04:38:20 +10:00
gui_main.py: Fix Menubar relaunch as root
This commit is contained in:
@@ -231,10 +231,13 @@ class wx_python_gui:
|
||||
extension = ""
|
||||
if event:
|
||||
if event.GetEventObject() != wx.Menu:
|
||||
if event.GetEventObject().GetLabel() == "Start Root Patching":
|
||||
extension = " --gui_patch"
|
||||
elif event.GetEventObject().GetLabel() == "Revert Root Patches":
|
||||
extension = " --gui_unpatch"
|
||||
try:
|
||||
if event.GetEventObject().GetLabel() == "Start Root Patching":
|
||||
extension = " --gui_patch"
|
||||
elif event.GetEventObject().GetLabel() == "Revert Root Patches":
|
||||
extension = " --gui_unpatch"
|
||||
except TypeError:
|
||||
pass
|
||||
|
||||
if self.constants.launcher_script is None:
|
||||
args_string = f"'{self.constants.launcher_binary}'{extension}"
|
||||
|
||||
Reference in New Issue
Block a user