GUI: Move Centre() to after init

This commit is contained in:
Mykola Grymalyuk
2023-05-28 09:15:33 -06:00
parent 48cf833cb8
commit abea113272

View File

@@ -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):