mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07: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:
|
if not global_container_stack:
|
||||||
self._abbr_machine = ""
|
self._abbr_machine = ""
|
||||||
return
|
return
|
||||||
active_machine_id = Preferences.getInstance().getValue("cura/active_machine")
|
active_machine_type_id = global_container_stack.definition.getId()
|
||||||
|
|
||||||
abbr_machine = ""
|
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":
|
if word.lower() == "ultimaker":
|
||||||
abbr_machine += "UM"
|
abbr_machine += "UM"
|
||||||
elif word.isdigit():
|
elif word.isdigit():
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue