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

View File

@@ -79,7 +79,7 @@ class DownloadFrame(wx.Frame):
)
progress_bar.SetValue(int(self.download_obj.get_percent()))
wx.GetApp().Yield()
wx.Yield()
if self.download_obj.download_complete is False and self.user_cancelled is False:
wx.MessageBox(f"Download failed: \n{self.download_obj.error_msg}", "Error", wx.OK | wx.ICON_ERROR)