Browse Source

Remove the cluster connection type

CURA-6011
Jaime van Kessel 6 years ago
parent
commit
b8a4d8e80d

+ 1 - 2
cura/PrinterOutputDevice.py

@@ -39,8 +39,7 @@ class ConnectionType(IntEnum):
     Unknown = 0
     UsbConnection = 1
     NetworkConnection = 2
-    ClusterConnection = 3
-    CloudConnection = 4
+    CloudConnection = 3
 
 
 ##  Printer output device adds extra interface options on top of output device.

+ 1 - 1
cura/PrintersModel.py

@@ -54,7 +54,7 @@ class PrintersModel(ListModel):
 
         for container_stack in container_stacks:
             connection_type = container_stack.getMetaDataEntry("connection_type")
-            has_remote_connection = connection_type in [str(ConnectionType.NetworkConnection), str(ConnectionType.CloudConnection), str(ConnectionType.ClusterConnection)]
+            has_remote_connection = connection_type in [str(ConnectionType.NetworkConnection), str(ConnectionType.CloudConnection)]
 
             # TODO: Remove reference to connect group name.
             items.append({"name": container_stack.getMetaDataEntry("connect_group_name", container_stack.getName()),

+ 1 - 1
plugins/UM3NetworkPrinting/src/ClusterUM3OutputDevice.py

@@ -55,7 +55,7 @@ class ClusterUM3OutputDevice(NetworkedPrinterOutputDevice):
     clusterPrintersChanged = pyqtSignal()
 
     def __init__(self, device_id, address, properties, parent = None) -> None:
-        super().__init__(device_id = device_id, address = address, properties=properties, connection_type = ConnectionType.ClusterConnection, parent = parent)
+        super().__init__(device_id = device_id, address = address, properties=properties, connection_type = ConnectionType.NetworkConnection, parent = parent)
         self._api_prefix = "/cluster-api/v1/"
 
         self._number_of_extruders = 2