checkpoint. continued work on downloader
This commit is contained in:
@@ -370,7 +370,10 @@ class InstallerWizard(QtWidgets.QWizard):
|
||||
if tool_name not in [tool["name"] for tool in self.__tools__]:
|
||||
return
|
||||
else:
|
||||
self._download_progress[tool_name] = bytes_received/bytes_total
|
||||
try:
|
||||
self._download_progress[tool_name] = bytes_received/bytes_total
|
||||
except ZeroDivisionError:
|
||||
self._download_progress[tool_name] = 0
|
||||
self._progress_update_lock.acquire()
|
||||
self.progress_bar.setValue(sum(self._download_progress.values()))
|
||||
self._progress_update_lock.release()
|
||||
|
||||
Reference in New Issue
Block a user