Fix cluster host checking, show neat actionable message when not host

This commit is contained in:
ChrisTerBeke 2019-08-09 12:38:25 +02:00
parent 669e64afdb
commit 90c69e079c
4 changed files with 40 additions and 14 deletions

View file

@ -45,6 +45,9 @@ class LocalClusterOutputDevice(UltimakerNetworkedPrinterOutputDevice):
self._setInterfaceElements()
self._active_camera_url = QUrl() # type: QUrl
# Get the cluster configuration at least once to check if it is a host.
self._update()
## 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