Move existNetworkInstances into discover action

This commit is contained in:
Jaime van Kessel 2019-04-05 17:49:29 +02:00
parent 5b818d203a
commit fe14024620
2 changed files with 3 additions and 8 deletions

View file

@ -157,7 +157,9 @@ class DiscoverUM3Action(MachineAction):
@pyqtSlot(str, result = bool)
def existsKey(self, key: str) -> bool:
return CuraApplication.getInstance().getMachineManager().existNetworkInstances(network_key = key)
metadata_filter = {"um_network_key": key}
containers = CuraContainerRegistry.getInstance().findContainerStacks(type="machine", **metadata_filter)
return bool(containers)
@pyqtSlot()
def loadConfigurationFromPrinter(self) -> None: