CURA-5449 Do not check if the name is the correct group name if the

output device is manual create device and it is marked as temporary.
Wait until all the information is retrieved when the request finishes.
This commit is contained in:
Diego Prado Gesto 2018-06-06 14:54:26 +02:00
parent 4652c3be0f
commit 1019f2dd65
3 changed files with 6 additions and 6 deletions

View file

@ -1308,8 +1308,8 @@ class MachineManager(QObject):
# Check if the connect_group_name is correct. If not, update all the containers connected to the same printer
if self.activeMachineNetworkGroupName != group_name:
metadata_filter = {"um_network_key": self.activeMachineNetworkKey}
hidden_containers = ContainerRegistry.getInstance().findContainerStacks(type = "machine", **metadata_filter)
for container in hidden_containers:
containers = ContainerRegistry.getInstance().findContainerStacks(type = "machine", **metadata_filter)
for container in containers:
container.setMetaDataEntry("connect_group_name", group_name)
## This method checks if there is an instance connected to the given network_key