mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-10 08:17:49 -06:00
Handle case that printer type can be human readable string
CURA-6449
This commit is contained in:
parent
cf9ab5a5cd
commit
0501ae2fbc
2 changed files with 19 additions and 4 deletions
|
@ -1640,6 +1640,10 @@ class MachineManager(QObject):
|
|||
|
||||
return abbr_machine
|
||||
|
||||
def hasMachineTypeName(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