From b1104124f38f7f84ed29ed137d1d8867833ab6e8 Mon Sep 17 00:00:00 2001 From: Ian Paschal Date: Wed, 6 Feb 2019 12:01:42 +0100 Subject: [PATCH] Add address property to ClusterUM3OutputDevice This was necessary because it was the only way to get the address (NetworkPrinterDevice and PrinterOutputDevice returned empty strings) Contributes to CL-1222 --- plugins/UM3NetworkPrinting/src/ClusterUM3OutputDevice.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/UM3NetworkPrinting/src/ClusterUM3OutputDevice.py b/plugins/UM3NetworkPrinting/src/ClusterUM3OutputDevice.py index e490011456..790d0c430b 100644 --- a/plugins/UM3NetworkPrinting/src/ClusterUM3OutputDevice.py +++ b/plugins/UM3NetworkPrinting/src/ClusterUM3OutputDevice.py @@ -252,6 +252,11 @@ class ClusterUM3OutputDevice(NetworkedPrinterOutputDevice): self._compressing_gcode = False self._sending_gcode = False + ## The IP address of the printer. + @pyqtProperty(str, constant = True) + def address(self) -> str: + return self._address + def _onUploadPrintJobProgress(self, bytes_sent: int, bytes_total: int) -> None: if bytes_total > 0: new_progress = bytes_sent / bytes_total * 100