mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Don't display any message if setting is empty
Contributes to issue CURA-6759.
This commit is contained in:
parent
c1b4bcebec
commit
b20e5bfd98
1 changed files with 4 additions and 3 deletions
|
@ -114,9 +114,9 @@ class PauseAtHeight(Script):
|
|||
"display_text":
|
||||
{
|
||||
"label": "Display Text",
|
||||
"description": "Text that should appear on the display while paused.",
|
||||
"description": "Text that should appear on the display while paused. If left empty, there will not be any message.",
|
||||
"type": "str",
|
||||
"default_value": "Print paused."
|
||||
"default_value": ""
|
||||
}
|
||||
}
|
||||
}"""
|
||||
|
@ -295,7 +295,8 @@ class PauseAtHeight(Script):
|
|||
# Set extruder standby temperature
|
||||
prepend_gcode += self.putValue(M = 104, S = standby_temperature) + " ; standby temperature\n"
|
||||
|
||||
prepend_gcode += "M117 " + display_text + "\n"
|
||||
if display_text:
|
||||
prepend_gcode += "M117 " + display_text + "\n"
|
||||
|
||||
# Wait till the user continues printing
|
||||
prepend_gcode += self.putValue(M = 0) + " ; Do the actual pause\n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue