mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 09:47:50 -06:00
CURA-4870 Change code style
This commit is contained in:
parent
518423f25b
commit
06d028652d
1 changed files with 1 additions and 3 deletions
|
@ -1224,9 +1224,7 @@ class MachineManager(QObject):
|
|||
def existNetworkInstances(self, network_key: str) -> bool:
|
||||
metadata_filter = {"um_network_key": network_key}
|
||||
containers = ContainerRegistry.getInstance().findContainerStacks(type = "machine", **metadata_filter)
|
||||
if containers:
|
||||
return True
|
||||
return False
|
||||
return bool(containers)
|
||||
|
||||
@pyqtSlot("QVariant")
|
||||
def setGlobalVariant(self, container_node):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue