mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 03:07:53 -06: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue