mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 15:13:56 -06:00
Move hasHumanReadableMachienTypeName to discovered printers
This commit is contained in:
parent
05a5f66856
commit
5eee3fc368
2 changed files with 10 additions and 9 deletions
|
@ -1648,13 +1648,6 @@ class MachineManager(QObject):
|
|||
|
||||
return abbr_machine
|
||||
|
||||
# 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
|
||||
|
||||
@pyqtSlot(str, result = str)
|
||||
def getMachineTypeNameFromId(self, machine_type_id: str) -> str:
|
||||
machine_type_name = ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue