mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 23:25:53 +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:
|
if "{machine_name}" in template:
|
||||||
global_container_stack = self._application.getGlobalContainerStack()
|
global_container_stack = self._application.getGlobalContainerStack()
|
||||||
if not global_container_stack:
|
active_machine_type_name = global_container_stack.definition.getName() \
|
||||||
self._abbr_machine = ""
|
if global_container_stack \
|
||||||
return
|
else "no_machine"
|
||||||
active_machine_type_name = global_container_stack.definition.getName()
|
|
||||||
active_machine_type_name = active_machine_type_name.replace(" ", "_")
|
active_machine_type_name = active_machine_type_name.replace(" ", "_")
|
||||||
output = output.replace("{machine_name}", active_machine_type_name)
|
output = output.replace("{machine_name}", active_machine_type_name)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user