mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 01:25:51 +08:00
Don't display any message if setting is empty
Contributes to issue CURA-6759.
This commit is contained in:
parent
c1b4bcebec
commit
b20e5bfd98
@ -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…
x
Reference in New Issue
Block a user