menu: Fixed typo when reading `print_stats.state` (#4261)
Fixed typo when reading `print_stats.state` causing some of the menus to now show up. Signed-off-by: Dany Yanev <yanev89@gmail.com>
This commit is contained in:
parent
7bf379d75d
commit
b333547f1f
|
@ -171,7 +171,7 @@ gcode: M24
|
||||||
|
|
||||||
[menu __main __sdcard __resume]
|
[menu __main __sdcard __resume]
|
||||||
type: command
|
type: command
|
||||||
enable: {('virtual_sdcard' in printer) and printer.print_stats.state == "pause"}
|
enable: {('virtual_sdcard' in printer) and printer.print_stats.state == "paused"}
|
||||||
name: Resume printing
|
name: Resume printing
|
||||||
gcode:
|
gcode:
|
||||||
{% if "pause_resume" in printer %}
|
{% if "pause_resume" in printer %}
|
||||||
|
@ -193,7 +193,7 @@ gcode:
|
||||||
|
|
||||||
[menu __main __sdcard __cancel]
|
[menu __main __sdcard __cancel]
|
||||||
type: command
|
type: command
|
||||||
enable: {('virtual_sdcard' in printer) and (printer.print_stats.state == "printing" or printer.print_stats.state == "pause")}
|
enable: {('virtual_sdcard' in printer) and (printer.print_stats.state == "printing" or printer.print_stats.state == "paused")}
|
||||||
name: Cancel printing
|
name: Cancel printing
|
||||||
gcode:
|
gcode:
|
||||||
{% if 'pause_resume' in printer %}
|
{% if 'pause_resume' in printer %}
|
||||||
|
|
Loading…
Reference in New Issue