mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 04:39:02 +08:00
Fix for CURA-4891
Use `active_machine_id` (such as "Ultimaker 3") instead of `global_stack_name` (such as "My Custom Printer Name")
This commit is contained in:
parent
56382bc9b8
commit
a786987d8d
@ -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")
|
||||
|
||||
global_stack_name = global_container_stack.getName()
|
||||
abbr_machine = ""
|
||||
for word in re.findall(r"[\w']+", global_stack_name):
|
||||
for word in re.findall(r"[\w']+", active_machine_id):
|
||||
if word.lower() == "ultimaker":
|
||||
abbr_machine += "UM"
|
||||
elif word.isdigit():
|
||||
|
Loading…
x
Reference in New Issue
Block a user