checkpoint. continued work on downloader

This commit is contained in:
Brennen Raimer
2019-05-03 16:47:59 -04:00
parent 602273a219
commit 4c48a6b827
2 changed files with 139 additions and 16 deletions
@@ -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()