mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-12 09:17:50 -06:00
Move existNetworkInstances into discover action
This commit is contained in:
parent
5b818d203a
commit
fe14024620
2 changed files with 3 additions and 8 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue