mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-14 02:07:51 -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:
|
def existNetworkInstances(self, network_key: str) -> bool:
|
||||||
metadata_filter = {"um_network_key": network_key}
|
metadata_filter = {"um_network_key": network_key}
|
||||||
containers = ContainerRegistry.getInstance().findContainerStacks(type = "machine", **metadata_filter)
|
containers = ContainerRegistry.getInstance().findContainerStacks(type = "machine", **metadata_filter)
|
||||||
if containers:
|
return bool(containers)
|
||||||
return True
|
|
||||||
return False
|
|
||||||
|
|
||||||
@pyqtSlot("QVariant")
|
@pyqtSlot("QVariant")
|
||||||
def setGlobalVariant(self, container_node):
|
def setGlobalVariant(self, container_node):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue