mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Progress is now only emitted if it changed
CURA-1339
This commit is contained in:
parent
232e447a74
commit
d33a75906a
1 changed files with 3 additions and 2 deletions
|
@ -298,6 +298,7 @@ class PrinterOutputDevice(OutputDevice, QObject):
|
|||
## Set the progress of any currently active process
|
||||
# /param progress Progress of the process.
|
||||
def setProgress(self, progress):
|
||||
if self._progress != progress:
|
||||
self._progress = progress
|
||||
self.progressChanged.emit()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue