From cd9ce32c04792f23ca6568ad92c7eb976e86a61b Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk Date: Sat, 20 May 2023 13:18:11 -0600 Subject: [PATCH] =?UTF-8?q?GUI:=20Don=E2=80=99t=20prompt=20to=20root=20pat?= =?UTF-8?q?ch=20if=20no=20new=20patches?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/wx_gui/gui_sys_patch.py | 2 ++ resources/wx_gui/gui_update.py | 1 + 2 files changed, 3 insertions(+) diff --git a/resources/wx_gui/gui_sys_patch.py b/resources/wx_gui/gui_sys_patch.py index db2af6916..95647fe94 100644 --- a/resources/wx_gui/gui_sys_patch.py +++ b/resources/wx_gui/gui_sys_patch.py @@ -269,6 +269,8 @@ class SysPatchFrame(wx.Frame): start_button.Disable() elif no_new_patches is False: start_button.SetDefault() + else: + self.available_patches = False if can_unpatch is False: revert_button.Disable() diff --git a/resources/wx_gui/gui_update.py b/resources/wx_gui/gui_update.py index 5814d362a..5c6965216 100644 --- a/resources/wx_gui/gui_update.py +++ b/resources/wx_gui/gui_update.py @@ -74,6 +74,7 @@ class UpdateFrame(wx.Frame): progress_bar.Pulse() self.progress_bar = progress_bar + self.frame.Centre() self.frame.Show() wx.Yield()