GUI: Strip Centre() work-around

This commit is contained in:
Mykola Grymalyuk
2023-05-29 09:28:25 -06:00
parent 984ba65d41
commit 0388eaa6f2
10 changed files with 11 additions and 59 deletions

View File

@@ -38,10 +38,10 @@ class UpdateFrame(wx.Frame):
self.application_path = self.constants.payload_path / "OpenCore-Patcher.app"
self.screen_location: wx.Point = screen_location
if parent:
gui_support.Centre(self.parent, self.constants)
self.parent.Centre()
self.screen_location = parent.GetScreenPosition()
else:
gui_support.Centre(self, self.constants)
self.Centre()
self.screen_location = self.GetScreenPosition()
@@ -82,7 +82,7 @@ class UpdateFrame(wx.Frame):
self.progress_bar = progress_bar
self.progress_bar_animation = progress_bar_animation
gui_support.Centre(self.frame, self.constants)
self.frame.Centre()
self.frame.Show()
wx.Yield()