mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Add fallback in PrinterOutputDevice for getting address
The fallback gives a warning that it's not implemented. Contributes to issue CURA-3161.
This commit is contained in:
parent
c5655d4d8c
commit
e37d8b949e
2 changed files with 6 additions and 1 deletions
|
@ -165,6 +165,11 @@ class PrinterOutputDevice(QObject, OutputDevice):
|
|||
self._job_name = name
|
||||
self.jobNameChanged.emit()
|
||||
|
||||
## Gives a human-readable address where the device can be found.
|
||||
@pyqtProperty(str, constant = True)
|
||||
def address(self):
|
||||
Logger.log("w", "address is not implemented by this output device.")
|
||||
|
||||
@pyqtProperty(str, notify = errorTextChanged)
|
||||
def errorText(self):
|
||||
return self._error_text
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue