klipper/klippy/extras/display
Kamil Trzcinski 7e88f9220c menu: fix crash when opening SDCard menu while printing
This fixes the bug introduced by f1091a484b.
The problem is that condition was returning string which
could not be converted to boolean. We solve that by showing
`Start Printing` when `is_active`.

```
ERROR:root:Unhandled exception during run
Traceback (most recent call last):
   ...
   File "/opt/klipper/klippy/extras/display/menu.py", line 117, in eval_enable
     return bool(ast.literal_eval(self._enable_tpl.render(context)))
   File "/usr/lib/python2.7/ast.py", line 49, in literal_eval
     node_or_string = parse(node_or_string, mode='eval')
   File "/usr/lib/python2.7/ast.py", line 37, in parse
     return compile(source, filename, mode, PyCF_ONLY_AST)
   File "<unknown>", line 1
     /opt/octoprint/uploads/wait_print.gcode
```

Signed-off-by: Kamil Trzcinski <ayufan@ayufan.eu>
2021-07-26 22:34:43 -04:00
..
__init__.py
display.cfg
display.py hd44780_spi: added lcd support to the mightyboard (#4121) 2021-04-07 21:07:23 -04:00
font8x14.py
hd44780.py
hd44780_spi.py hd44780_spi: added lcd support to the mightyboard (#4121) 2021-04-07 21:07:23 -04:00
menu.cfg menu: fix crash when opening SDCard menu while printing 2021-07-26 22:34:43 -04:00
menu.py
menu_keys.py
st7920.py
uc1701.py