From abea113272985dce7f1989205813365368a1f0ce Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk Date: Sun, 28 May 2023 09:15:33 -0600 Subject: [PATCH] GUI: Move Centre() to after init --- resources/wx_gui/gui_sys_patch_start.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/wx_gui/gui_sys_patch_start.py b/resources/wx_gui/gui_sys_patch_start.py index 565d798a5..f92c87845 100644 --- a/resources/wx_gui/gui_sys_patch_start.py +++ b/resources/wx_gui/gui_sys_patch_start.py @@ -43,7 +43,6 @@ class SysPatchStartFrame(wx.Frame): super(SysPatchStartFrame, self).__init__(parent, title=title, size=(350, 200), style=wx.DEFAULT_FRAME_STYLE & ~(wx.RESIZE_BORDER | wx.MAXIMIZE_BOX)) gui_support.GenerateMenubar(self, self.constants).generate() - self.Centre() if self.patches == {}: self.patches = sys_patch_detect.DetectRootPatch(self.constants.computer.real_model, self.constants).detect_patch_set() @@ -209,6 +208,7 @@ class SysPatchStartFrame(wx.Frame): dialog.SetSize((-1, return_button.GetPosition().y + return_button.GetSize().height + 33)) self.frame_modal = dialog dialog.ShowWindowModal() + self.Centre() def start_root_patching(self):