mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-24 20:10:14 +10:00
GUI: Don’t super on relaunch
This commit is contained in:
@@ -35,7 +35,7 @@ class SysPatchFrame(wx.Frame):
|
|||||||
def __init__(self, parent: wx.Frame, title: str, global_constants: constants.Constants, screen_location: tuple = None, patches: dict = {}):
|
def __init__(self, parent: wx.Frame, title: str, global_constants: constants.Constants, screen_location: tuple = None, patches: dict = {}):
|
||||||
self.frame = parent
|
self.frame = parent
|
||||||
self.initiated_with_parent = False
|
self.initiated_with_parent = False
|
||||||
if not self.frame:
|
if not self.frame and patches == {}:
|
||||||
super(SysPatchFrame, self).__init__(parent, title=title, size=(350, 200), style=wx.DEFAULT_FRAME_STYLE & ~(wx.RESIZE_BORDER | wx.MAXIMIZE_BOX))
|
super(SysPatchFrame, self).__init__(parent, title=title, size=(350, 200), style=wx.DEFAULT_FRAME_STYLE & ~(wx.RESIZE_BORDER | wx.MAXIMIZE_BOX))
|
||||||
self.frame = self
|
self.frame = self
|
||||||
self.frame.Centre()
|
self.frame.Centre()
|
||||||
|
|||||||
Reference in New Issue
Block a user