mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Fix: incorrect return statement
CURA-5479
This commit is contained in:
parent
adf082a4ad
commit
24820bab07
1 changed files with 4 additions and 4 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue