mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Better naming for hasMachineTypeName()
CURA-6449
This commit is contained in:
parent
25bbc1e66e
commit
19cd8f4edc
2 changed files with 6 additions and 3 deletions
|
@ -1640,7 +1640,10 @@ class MachineManager(QObject):
|
|||
|
||||
return abbr_machine
|
||||
|
||||
def hasMachineTypeName(self, machine_type_name: str) -> bool:
|
||||
# Checks if the given machine type name in the available machine list.
|
||||
# The machine type is a code name such as "ultimaker_3", while the machine type name is the human-readable name of
|
||||
# the machine type, which is "Ultimaker 3" for "ultimaker_3".
|
||||
def hasHumanReadableMachineTypeName(self, machine_type_name: str) -> bool:
|
||||
results = self._container_registry.findDefinitionContainersMetadata(name = machine_type_name)
|
||||
return len(results) > 0
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue