From 77adbdd28698e14246eddb4e57ecc7cf9bde3608 Mon Sep 17 00:00:00 2001 From: ChrisTerBeke Date: Mon, 12 Aug 2019 17:19:20 +0200 Subject: [PATCH] Simpler check if group host --- .../UM3NetworkPrinting/src/Network/LocalClusterOutputDevice.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/UM3NetworkPrinting/src/Network/LocalClusterOutputDevice.py b/plugins/UM3NetworkPrinting/src/Network/LocalClusterOutputDevice.py index ff704945eb..2c1ac2279d 100644 --- a/plugins/UM3NetworkPrinting/src/Network/LocalClusterOutputDevice.py +++ b/plugins/UM3NetworkPrinting/src/Network/LocalClusterOutputDevice.py @@ -45,6 +45,9 @@ class LocalClusterOutputDevice(UltimakerNetworkedPrinterOutputDevice): self._setInterfaceElements() self._active_camera_url = QUrl() # type: QUrl + # Get the printers of this cluster to check if this device is a group host or not. + self._cluster_api.getPrinters(self._updatePrinters) + ## Set all the interface elements and texts for this output device. def _setInterfaceElements(self) -> None: self.setPriority(3) # Make sure the output device gets selected above local file output