mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 15:15:56 +08:00
Fix: incorrect return statement
CURA-5479
This commit is contained in:
parent
adf082a4ad
commit
24820bab07
@ -450,10 +450,10 @@ class PrintInformation(QObject):
|
||||
|
||||
if "{machine_name}" in template:
|
||||
global_container_stack = self._application.getGlobalContainerStack()
|
||||
if not global_container_stack:
|
||||
self._abbr_machine = ""
|
||||
return
|
||||
active_machine_type_name = global_container_stack.definition.getName()
|
||||
active_machine_type_name = global_container_stack.definition.getName() \
|
||||
if global_container_stack \
|
||||
else "no_machine"
|
||||
|
||||
active_machine_type_name = active_machine_type_name.replace(" ", "_")
|
||||
output = output.replace("{machine_name}", active_machine_type_name)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user