mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 07:59:13 +08:00
Only return intents from intentMetadatas
Otherwise we also get quality profiles for the same printer... Contributes to issue CURA-6597.
This commit is contained in:
parent
168c9db648
commit
c2b20e5cc6
@ -43,7 +43,7 @@ class IntentManager(QObject):
|
||||
# an empty list if nothing was found.
|
||||
def intentMetadatas(self, definition_id: str, nozzle_name: str, material_id: str) -> List[Dict[str, Any]]:
|
||||
registry = cura.CuraApplication.CuraApplication.getInstance().getContainerRegistry()
|
||||
return registry.findContainersMetadata(definition = definition_id, variant = nozzle_name, material = material_id)
|
||||
return registry.findContainersMetadata(type = "intent", definition = definition_id, variant = nozzle_name, material = material_id)
|
||||
|
||||
## Collects and returns all intent categories available for the given
|
||||
# parameters. Note that the 'default' category is always available.
|
||||
|
Loading…
x
Reference in New Issue
Block a user