mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 15:07:28 -06:00
Compare ints instead of floats for progress check
This commit is contained in:
parent
48eda4d0dc
commit
3ea80c7c7c
1 changed files with 1 additions and 1 deletions
|
@ -485,7 +485,7 @@ class Toolbox(QObject, Extension):
|
|||
if bytes_total > 0:
|
||||
new_progress = bytes_sent / bytes_total * 100
|
||||
self.setDownloadProgress(new_progress)
|
||||
if new_progress == 100.0:
|
||||
if bytes_sent == bytes_total:
|
||||
self.setIsDownloading(False)
|
||||
self._download_reply.downloadProgress.disconnect(self._onDownloadProgress)
|
||||
# must not delete the temporary file on Windows
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue