Fix main thread crash from wx invocation in thread

This commit is contained in:
Mykola Grymalyuk
2023-05-17 14:35:07 -06:00
parent 28f10824fd
commit 88f895b61e
4 changed files with 30 additions and 18 deletions
+2 -2
View File
@@ -80,10 +80,10 @@ class SysPatchFrame(wx.Frame):
# Generate KDK object
self.kdk_obj: kdk_handler.KernelDebugKitObject = None
def kdk_thread_spawn():
def _kdk_thread_spawn():
self.kdk_obj = kdk_handler.KernelDebugKitObject(self.constants, self.constants.detected_os_build, self.constants.detected_os_version)
kdk_thread = threading.Thread(target=kdk_thread_spawn)
kdk_thread = threading.Thread(target=_kdk_thread_spawn)
kdk_thread.start()
while kdk_thread.is_alive():