mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-11 08:47:50 -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":
|
"display_text":
|
||||||
{
|
{
|
||||||
"label": "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",
|
"type": "str",
|
||||||
"default_value": "Print paused."
|
"default_value": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}"""
|
}"""
|
||||||
|
@ -295,6 +295,7 @@ class PauseAtHeight(Script):
|
||||||
# Set extruder standby temperature
|
# Set extruder standby temperature
|
||||||
prepend_gcode += self.putValue(M = 104, S = standby_temperature) + " ; standby temperature\n"
|
prepend_gcode += self.putValue(M = 104, S = standby_temperature) + " ; standby temperature\n"
|
||||||
|
|
||||||
|
if display_text:
|
||||||
prepend_gcode += "M117 " + display_text + "\n"
|
prepend_gcode += "M117 " + display_text + "\n"
|
||||||
|
|
||||||
# Wait till the user continues printing
|
# Wait till the user continues printing
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue