mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 14:44:13 -06: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
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")
|
||||
|
||||
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…
Add table
Add a link
Reference in a new issue