Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorc.lamboo <casperlamboo@gmail.com>2022-08-19 17:41:02 +0300
committerc.lamboo <casperlamboo@gmail.com>2022-08-19 17:41:02 +0300
commit963110a9c636a2d80a7db93b5aa53f9255a8ef12 (patch)
treea02419a61a2f85a9140d0854ba4dd48d21dfc98c /cura/Settings
parentf22d446fa401d5a2e6e8650184826c4ccb2878df (diff)
Cura-9277 Co-authored-by: joeydelarago <joeydelarago@gmail.com>
Diffstat (limited to 'cura/Settings')
-rw-r--r--cura/Settings/CuraContainerRegistry.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/cura/Settings/CuraContainerRegistry.py b/cura/Settings/CuraContainerRegistry.py
index f65697277e..70d03b5ddc 100644
--- a/cura/Settings/CuraContainerRegistry.py
+++ b/cura/Settings/CuraContainerRegistry.py
@@ -108,8 +108,7 @@ class CuraContainerRegistry(ContainerRegistry):
:param container_type: :type{string} Type of the container (machine, quality, ...)
:param container_name: :type{string} Name to check
"""
- # FIXME: this should check for abstract machine
- container_class = ContainerStack if container_type == "machine" else InstanceContainer
+ container_class = ContainerStack if container_type in "machine" else InstanceContainer
return self.findContainersMetadata(container_type = container_class, id = container_name, type = container_type, ignore_case = True) or \
self.findContainersMetadata(container_type = container_class, name = container_name, type = container_type)