mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 23:29:07 +08:00
CURA-4870 Change code style
This commit is contained in:
parent
518423f25b
commit
06d028652d
@ -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…
x
Reference in New Issue
Block a user