klipper-dgus/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 extras: Use "from . import module" for relative imports 2020-06-15 17:15:53 -04:00
display.cfg docs: Add links to default display.cfg and menu.cfg in Config_Reference.md 2020-12-03 18:11:29 -05:00
display.py hd44780_spi: added lcd support to the mightyboard (#4121) 2021-04-07 21:07:23 -04:00
font8x14.py font8x14: Store font as strings instead of as bytearray 2019-02-27 13:26:59 -05:00
hd44780.py hd44780: Add hd44780 protocol init config 2021-01-31 19:35:40 -05:00
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: redesigned name scroller & menu rendering (#3837) 2021-02-20 11:31:03 -05:00
menu_keys.py menu_keys: Add a register_button() helper method 2020-06-15 17:23:34 -04:00
st7920.py st7920: Better support for emulated ST7920 displays (#3979) 2021-03-01 18:23:06 -05:00
uc1701.py uc1701: Add x_offset (Used to add horizontal offset on SSD1306/SH1106 displays) (#3284) 2020-09-09 23:07:40 -04:00