mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-19 13:50:00 +10:00
gui_main.py: Ensure passed values are integers
This commit is contained in:
@@ -1328,7 +1328,7 @@ class wx_python_gui:
|
|||||||
)
|
)
|
||||||
self.developer_note.Centre(wx.HORIZONTAL)
|
self.developer_note.Centre(wx.HORIZONTAL)
|
||||||
|
|
||||||
self.progress_bar.SetValue(kdk_download_obj.get_percent())
|
self.progress_bar.SetValue(int(kdk_download_obj.get_percent()))
|
||||||
|
|
||||||
wx.GetApp().Yield()
|
wx.GetApp().Yield()
|
||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
@@ -1847,7 +1847,7 @@ class wx_python_gui:
|
|||||||
)
|
)
|
||||||
self.download_label_2.Centre(wx.HORIZONTAL)
|
self.download_label_2.Centre(wx.HORIZONTAL)
|
||||||
|
|
||||||
self.download_progress.SetValue(ia_download.get_percent())
|
self.download_progress.SetValue(int(ia_download.get_percent()))
|
||||||
|
|
||||||
wx.GetApp().Yield()
|
wx.GetApp().Yield()
|
||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
|
|||||||
Reference in New Issue
Block a user