GUI: Unify Yield() calls

This commit is contained in:
Mykola Grymalyuk
2023-05-18 16:06:33 -06:00
parent 300726ea96
commit 11bc64f8e6
7 changed files with 12 additions and 13 deletions
+4 -4
View File
@@ -87,7 +87,7 @@ class SysPatchFrame(wx.Frame):
kdk_thread.start()
while kdk_thread.is_alive():
wx.GetApp().Yield()
wx.Yield()
if self.kdk_obj.success is False:
progress_bar_animation.stop_pulse()
@@ -115,7 +115,7 @@ class SysPatchFrame(wx.Frame):
subheader.SetLabel("Checking if checksum is valid...")
subheader.Center(wx.HORIZONTAL)
wx.GetApp().Yield()
wx.Yield()
progress_bar_animation.stop_pulse()
@@ -372,7 +372,7 @@ class SysPatchFrame(wx.Frame):
thread.start()
while thread.is_alive():
wx.GetApp().Yield()
wx.Yield()
self._post_patch()
self.return_button.Enable()
@@ -397,7 +397,7 @@ class SysPatchFrame(wx.Frame):
thread.start()
while thread.is_alive():
wx.GetApp().Yield()
wx.Yield()
self._post_patch()
self.return_button.Enable()