CURA-4485 Activate configuration option disabled in printers within a

cluster.
Just allow when there is a cluster with just one printer.
This commit is contained in:
Diego Prado Gesto 2017-10-24 14:51:35 +02:00
parent c1139c5c45
commit 6dfd04928f
2 changed files with 12 additions and 2 deletions

View file

@ -220,7 +220,9 @@ class NetworkClusterPrinterOutputDevice(NetworkPrinterOutputDevice.NetworkPrinte
self.setPrinters(json_data)
def materialHotendChangedMessage(self, callback):
pass # Do nothing.
# When there is just one printer, the activate configuration option is enabled
if (self._cluster_size == 1):
super().materialHotendChangedMessage(callback = callback)
def _startCameraStream(self):
## Request new image