mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-13 20:28:21 +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)
|
||||
|
||||
def OnCloseFrame(self, event):
|
||||
self.frame.SetTransparent(0)
|
||||
wx.GetApp().Yield()
|
||||
self.frame.DestroyChildren()
|
||||
self.frame.Destroy()
|
||||
self.app.ExitMainLoop()
|
||||
|
||||
Reference in New Issue
Block a user