mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 06:29:02 +08:00
Implemented interface for setting printjobstate
CURA-1038
This commit is contained in:
parent
2d78f0a610
commit
640e1a2350
@ -70,11 +70,18 @@ class PrinterOutputDevice(QObject, OutputDevice):
|
||||
def jobState(self):
|
||||
return self._job_state
|
||||
|
||||
def setJobState(self, job_state):
|
||||
def _updateJobState(self, job_state):
|
||||
if self._job_state != job_state:
|
||||
self._job_state = job_state
|
||||
self.jobStateChanged.emit()
|
||||
|
||||
@pyqtSlot(str)
|
||||
def setJobState(self, job_state):
|
||||
self._setJobState(job_state)
|
||||
|
||||
def _setJobState(self, job_state):
|
||||
Logger.log("w", "_setJobState is not implemented by this output device")
|
||||
|
||||
## Get the bed temperature of the bed (if any)
|
||||
# This function is "final" (do not re-implement)
|
||||
# /sa _getBedTemperature implementation function
|
||||
|
Loading…
x
Reference in New Issue
Block a user