mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 11:49:01 +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:
|
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…
x
Reference in New Issue
Block a user