diff --git a/cura/PrinterOutputDevice.py b/cura/PrinterOutputDevice.py index c6bc3e8f3d..8f03bdff79 100644 --- a/cura/PrinterOutputDevice.py +++ b/cura/PrinterOutputDevice.py @@ -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 diff --git a/resources/qml/PrintMonitor.qml b/resources/qml/PrintMonitor.qml index b34d1af252..8ce094cbd3 100644 --- a/resources/qml/PrintMonitor.qml +++ b/resources/qml/PrintMonitor.qml @@ -43,7 +43,7 @@ Column Label { id: connectedPrinterAddressLabel - text: printerConnected ? connectedPrinter.address : "" + text: (printerConnected && connectedPrinter.address != null) ? connectedPrinter.address : "" font: UM.Theme.getFont("small") color: UM.Theme.getColor("text_inactive") anchors.left: parent.left