mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
Comment out some currently broken code
This commit is contained in:
parent
9f4b047ee1
commit
cd67100097
1 changed files with 6 additions and 5 deletions
|
@ -79,7 +79,7 @@ class CloudOutputDeviceManager:
|
||||||
self._removeCloudOutputDevice(found_clusters[cluster_id])
|
self._removeCloudOutputDevice(found_clusters[cluster_id])
|
||||||
|
|
||||||
# TODO: not pass clusters that are not online?
|
# TODO: not pass clusters that are not online?
|
||||||
self._connectToActiveMachine(clusters)
|
self._connectToActiveMachine()
|
||||||
|
|
||||||
## Adds a CloudOutputDevice for each entry in the remote cluster list from the API.
|
## Adds a CloudOutputDevice for each entry in the remote cluster list from the API.
|
||||||
# \param cluster: The cluster that was added.
|
# \param cluster: The cluster that was added.
|
||||||
|
@ -96,7 +96,7 @@ class CloudOutputDeviceManager:
|
||||||
del self._remote_clusters[cluster.cluster_id]
|
del self._remote_clusters[cluster.cluster_id]
|
||||||
|
|
||||||
## Callback for when the active machine was changed by the user or a new remote cluster was found.
|
## Callback for when the active machine was changed by the user or a new remote cluster was found.
|
||||||
def _connectToActiveMachine(self, clusters: List[CloudCluster]) -> None:
|
def _connectToActiveMachine(self) -> None:
|
||||||
active_machine = CuraApplication.getInstance().getGlobalContainerStack()
|
active_machine = CuraApplication.getInstance().getGlobalContainerStack()
|
||||||
if not active_machine:
|
if not active_machine:
|
||||||
return
|
return
|
||||||
|
@ -115,9 +115,10 @@ class CloudOutputDeviceManager:
|
||||||
if not local_network_key:
|
if not local_network_key:
|
||||||
return
|
return
|
||||||
|
|
||||||
cluster_id = next(local_network_key in cluster.host_name for cluster in clusters)
|
# TODO: get host_name in the output device so we can iterate here
|
||||||
if cluster_id in self._remote_clusters.keys():
|
# cluster_id = next(local_network_key in cluster.host_name for cluster in self._remote_clusters.items())
|
||||||
return self._remote_clusters.get(cluster_id).connect()
|
# if cluster_id in self._remote_clusters.keys():
|
||||||
|
# return self._remote_clusters.get(cluster_id).connect()
|
||||||
|
|
||||||
## Handles an API error received from the cloud.
|
## Handles an API error received from the cloud.
|
||||||
# \param errors: The errors received
|
# \param errors: The errors received
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue