Browse Source

FixassociateActiveMachineWithPrinterDevice()

CURA-6057
Lipu Fei 6 years ago
parent
commit
ffce5b8d58
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/UM3NetworkPrinting/src/UM3OutputDevicePlugin.py

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

@@ -265,7 +265,7 @@ class UM3OutputDevicePlugin(OutputDevicePlugin):
             old_network_key = meta_data["um_network_key"]
             # Since we might have a bunch of hidden stacks, we also need to change it there.
             metadata_filter = {"um_network_key": old_network_key}
-            containers = self._application.findContainerStacks(type = "machine", **metadata_filter)
+            containers = self._application.getContainerRegistry().findContainerStacks(type = "machine", **metadata_filter)
 
             for container in containers:
                 container.setMetaDataEntry("um_network_key", printer_device.key)