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:
Ghostkeeper 2019-07-04 09:43:25 +02:00
parent 168c9db648
commit c2b20e5cc6
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276

View file

@ -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.