mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 04:19:03 +08:00
Compare ints instead of floats for progress check
This commit is contained in:
parent
48eda4d0dc
commit
3ea80c7c7c
@ -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…
x
Reference in New Issue
Block a user