klipper/klippy
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
..
chelper kinematics: Add dual_carriage to hybrid-corexyz (#4296) 2021-06-27 18:37:05 -04:00
extras menu: fix crash when opening SDCard menu while printing 2021-07-26 22:34:43 -04:00
kinematics kinematics: Add dual_carriage to hybrid-corexyz (#4296) 2021-06-27 18:37:05 -04:00
clocksync.py msgblock: Add clock estimation helper functions 2021-06-09 18:58:35 -04:00
configfile.py configfile: Add printer.configfile.settings command template parameter 2021-01-20 16:25:25 -05:00
console.py console: Add support for connecting via CAN bus 2021-03-13 11:29:41 -05:00
gcode.py gcode: Update gcode descriptions (#4335) 2021-06-02 10:45:27 -04:00
klippy.py klippy: Add a newline between initial error message and hint text 2021-06-10 21:30:09 -04:00
mathutil.py mathutil: Disable queuelogger in background_coordinate_descent() 2019-12-17 09:51:45 -05:00
mcu.py mcu: Set reqclock on trsync_start commands 2021-07-09 14:34:38 -04:00
msgproto.py spi_flash: Make SD updates more tolerant of flaky boards 2021-07-20 18:05:05 -04:00
parsedump.py
pins.py duplicate_pin_override: Debugging tool to permit multiple use pins 2021-06-27 18:50:51 -04:00
queuelogger.py webhooks: Add client_info parameter to "info" webhook 2020-08-26 10:12:58 -04:00
reactor.py reactor: Record time of recent gc collection sweeps 2020-09-17 02:06:20 -04:00
serialhdl.py msgblock: Add clock estimation helper functions 2021-06-09 18:58:35 -04:00
stepper.py stepper: Minor indentation changes 2021-07-03 23:58:40 -04:00
toolhead.py toolhead: Do not limit SET_VELOCITY_LIMIT to values specified in config 2021-04-30 11:26:19 -04:00
util.py util: Improve Python3 compatibility 2020-06-15 17:15:53 -04:00
webhooks.py webhooks: Fix use of deprecated Exception.message attribute (#3781) 2021-01-17 22:37:41 -05:00