mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-19 22:00:00 +10:00
gui_main.py: Hide window during close
Allows background processes to finish cleaning up without stalling the UI
This commit is contained in:
@@ -76,6 +76,8 @@ class wx_python_gui:
|
|||||||
wx.CallAfter(self.frame.Close)
|
wx.CallAfter(self.frame.Close)
|
||||||
|
|
||||||
def OnCloseFrame(self, event):
|
def OnCloseFrame(self, event):
|
||||||
|
self.frame.SetTransparent(0)
|
||||||
|
wx.GetApp().Yield()
|
||||||
self.frame.DestroyChildren()
|
self.frame.DestroyChildren()
|
||||||
self.frame.Destroy()
|
self.frame.Destroy()
|
||||||
self.app.ExitMainLoop()
|
self.app.ExitMainLoop()
|
||||||
|
|||||||
Reference in New Issue
Block a user