mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Remove crappy implementation
This commit is contained in:
parent
467d347008
commit
d0513e40e1
7 changed files with 8 additions and 99 deletions
|
@ -86,7 +86,7 @@ class CloudOutputDeviceManager:
|
|||
self._output_device_manager.addOutputDevice(device)
|
||||
self._remote_clusters[cluster.cluster_id] = device
|
||||
device.connect() # TODO: remove this
|
||||
self._connectToActiveMachine(cluster.cluster_id, cluster.host_name)
|
||||
self._connectToActiveMachine(cluster.cluster_id)
|
||||
|
||||
## Remove a CloudOutputDevice
|
||||
# \param cluster: The cluster that was removed
|
||||
|
@ -96,7 +96,7 @@ class CloudOutputDeviceManager:
|
|||
del self._remote_clusters[cluster.cluster_id]
|
||||
|
||||
## Callback for when the active machine was changed by the user.
|
||||
def _connectToActiveMachine(self, cluster_id: Optional[str] = None, host_name: Optional[str] = None) -> None:
|
||||
def _connectToActiveMachine(self, cluster_id: Optional[str] = None) -> None:
|
||||
active_machine = CuraApplication.getInstance().getGlobalContainerStack()
|
||||
if not active_machine:
|
||||
return
|
||||
|
@ -104,7 +104,6 @@ class CloudOutputDeviceManager:
|
|||
# TODO: Remove this once correct pairing has been added (see below).
|
||||
if cluster_id:
|
||||
active_machine.setMetaDataEntry("um_cloud_cluster_id", cluster_id)
|
||||
active_machine.setMetaDataEntry("connect_group_name", host_name)
|
||||
|
||||
# Check if the stored cluster_id for the active machine is in our list of remote clusters.
|
||||
stored_cluster_id = active_machine.getMetaDataEntry("um_cloud_cluster_id")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue