mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-07-14 19:41:46 +08:00
Progress is now only emitted if it changed
CURA-1339
This commit is contained in:
parent
232e447a74
commit
d33a75906a
@ -298,8 +298,9 @@ class PrinterOutputDevice(OutputDevice, QObject):
|
|||||||
## Set the progress of any currently active process
|
## Set the progress of any currently active process
|
||||||
# /param progress Progress of the process.
|
# /param progress Progress of the process.
|
||||||
def setProgress(self, progress):
|
def setProgress(self, progress):
|
||||||
self._progress = progress
|
if self._progress != progress:
|
||||||
self.progressChanged.emit()
|
self._progress = progress
|
||||||
|
self.progressChanged.emit()
|
||||||
|
|
||||||
|
|
||||||
## The current processing state of the backend.
|
## The current processing state of the backend.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user