mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 21:13:58 -06:00
Use global_stack.definition.getId() to determine machine type
CURA-4891
This commit is contained in:
parent
f7ef1c7aa8
commit
a3ed385259
1 changed files with 2 additions and 2 deletions
|
@ -362,10 +362,10 @@ class PrintInformation(QObject):
|
|||
if not global_container_stack:
|
||||
self._abbr_machine = ""
|
||||
return
|
||||
active_machine_id = Preferences.getInstance().getValue("cura/active_machine")
|
||||
active_machine_type_id = global_container_stack.definition.getId()
|
||||
|
||||
abbr_machine = ""
|
||||
for word in re.findall(r"[\w']+", active_machine_id):
|
||||
for word in re.findall(r"[\w']+", active_machine_type_id):
|
||||
if word.lower() == "ultimaker":
|
||||
abbr_machine += "UM"
|
||||
elif word.isdigit():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue