From 5b4464a1f2c07d17c979afec35a7ff4d5a17cb7a Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk Date: Sun, 21 May 2023 13:13:41 -0600 Subject: [PATCH] GUI: Fix argument overloading --- resources/wx_gui/gui_sys_patch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/wx_gui/gui_sys_patch.py b/resources/wx_gui/gui_sys_patch.py index 95647fe94..7042514cf 100644 --- a/resources/wx_gui/gui_sys_patch.py +++ b/resources/wx_gui/gui_sys_patch.py @@ -243,13 +243,13 @@ class SysPatchFrame(wx.Frame): # Button: Start Root Patching start_button = wx.Button(frame, label="Start Root Patching", pos=(10, patch_label.GetPosition().y + 25), size=(170, 30)) - start_button.Bind(wx.EVT_BUTTON, lambda event: self.start_root_patching(frame, patches, no_new_patches)) + start_button.Bind(wx.EVT_BUTTON, lambda event: self.start_root_patching(patches)) start_button.SetFont(wx.Font(13, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, ".AppleSystemUIFont")) start_button.Centre(wx.HORIZONTAL) # Button: Revert Root Patches revert_button = wx.Button(frame, label="Revert Root Patches", pos=(10, start_button.GetPosition().y + start_button.GetSize().height - 5), size=(170, 30)) - revert_button.Bind(wx.EVT_BUTTON, lambda event: self.revert_root_patching(frame, patches, can_unpatch)) + revert_button.Bind(wx.EVT_BUTTON, lambda event: self.revert_root_patching(patches)) revert_button.SetFont(wx.Font(13, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, ".AppleSystemUIFont")) revert_button.Centre(wx.HORIZONTAL)