mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 22:09:04 +08:00
Use global_stack.definition.getId() to determine machine type
CURA-4891
This commit is contained in:
parent
f7ef1c7aa8
commit
a3ed385259
@ -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…
x
Reference in New Issue
Block a user