mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
Prevent division by 0 if total download size is 0
This can happen if the downloads are all so small that it gets rounded to 0kB. Fixes Sentry issue CURA-ZM.
This commit is contained in:
parent
f0456526b3
commit
3032221b70
3 changed files with 7 additions and 3 deletions
|
@ -99,7 +99,7 @@ class ExtruderOutputModel(QObject):
|
|||
self._is_preheating = pre_heating
|
||||
self.isPreheatingChanged.emit()
|
||||
|
||||
@pyqtProperty(bool, notify=isPreheatingChanged)
|
||||
@pyqtProperty(bool, notify = isPreheatingChanged)
|
||||
def isPreheating(self) -> bool:
|
||||
return self._is_preheating
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue