mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 10:06:07 +08:00
Remove the cluster connection type
CURA-6011
This commit is contained in:
parent
226d052468
commit
b8a4d8e80d
@ -39,8 +39,7 @@ class ConnectionType(IntEnum):
|
|||||||
Unknown = 0
|
Unknown = 0
|
||||||
UsbConnection = 1
|
UsbConnection = 1
|
||||||
NetworkConnection = 2
|
NetworkConnection = 2
|
||||||
ClusterConnection = 3
|
CloudConnection = 3
|
||||||
CloudConnection = 4
|
|
||||||
|
|
||||||
|
|
||||||
## Printer output device adds extra interface options on top of output device.
|
## Printer output device adds extra interface options on top of output device.
|
||||||
|
@ -54,7 +54,7 @@ class PrintersModel(ListModel):
|
|||||||
|
|
||||||
for container_stack in container_stacks:
|
for container_stack in container_stacks:
|
||||||
connection_type = container_stack.getMetaDataEntry("connection_type")
|
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.
|
# TODO: Remove reference to connect group name.
|
||||||
items.append({"name": container_stack.getMetaDataEntry("connect_group_name", container_stack.getName()),
|
items.append({"name": container_stack.getMetaDataEntry("connect_group_name", container_stack.getName()),
|
||||||
|
@ -55,7 +55,7 @@ class ClusterUM3OutputDevice(NetworkedPrinterOutputDevice):
|
|||||||
clusterPrintersChanged = pyqtSignal()
|
clusterPrintersChanged = pyqtSignal()
|
||||||
|
|
||||||
def __init__(self, device_id, address, properties, parent = None) -> None:
|
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._api_prefix = "/cluster-api/v1/"
|
||||||
|
|
||||||
self._number_of_extruders = 2
|
self._number_of_extruders = 2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user