Correct parameter name

It's the base file, not the ID.

Contributes to issue CURA-6600.
This commit is contained in:
Ghostkeeper 2019-09-17 16:56:00 +02:00
parent 5f4051ab5c
commit 3712f9c1f8
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276

View file

@ -13,9 +13,6 @@ if TYPE_CHECKING:
## Front-end for querying which intents are available for a certain
# configuration.
#
# CURRENTLY THIS CLASS CONTAINS ONLY SOME PSEUDOCODE OF WHAT WE ARE SUPPOSED
# TO IMPLEMENT.
class IntentManager(QObject):
__instance = None
@ -43,9 +40,9 @@ class IntentManager(QObject):
# \param material_id ID of the material.
# \return A list of metadata dictionaries matching the search criteria, or
# an empty list if nothing was found.
def intentMetadatas(self, definition_id: str, nozzle_name: str, material_id: str) -> List[Dict[str, Any]]:
def intentMetadatas(self, definition_id: str, nozzle_name: str, material_base_file: str) -> List[Dict[str, Any]]:
registry = cura.CuraApplication.CuraApplication.getInstance().getContainerRegistry()
return registry.findContainersMetadata(type = "intent", definition = definition_id, variant = nozzle_name, material = material_id)
return registry.findContainersMetadata(type = "intent", definition = definition_id, variant = nozzle_name, material = material_base_file)
## Collects and returns all intent categories available for the given
# parameters. Note that the 'default' category is always available.