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
..
2021-07-26 22:34:43 -04:00
2018-01-28 12:19:26 -05:00
2020-06-15 17:15:53 -04:00
2020-09-09 22:20:54 -04:00
2020-09-02 10:04:35 -04:00
2021-04-30 11:40:37 -04:00
2021-06-08 00:02:35 -04:00
2020-09-04 12:10:36 -04:00
2020-08-20 21:03:22 -04:00
2021-06-22 15:30:25 -04:00
2021-03-15 11:50:29 -04:00
2020-11-20 12:00:36 -05:00
2021-03-10 17:12:25 -05:00
2020-09-04 19:33:04 -04:00
2021-03-13 11:29:41 -05:00
2021-07-20 10:34:14 -04:00
2020-05-08 11:05:14 -04:00
2021-05-29 21:54:34 -04:00
2020-09-28 10:11:05 -04:00
2021-06-18 10:53:12 -04:00
2021-02-02 14:34:56 -05:00
2021-06-27 18:50:51 -04:00
2021-06-06 20:41:27 -04:00
2021-04-30 11:09:08 -04:00
2020-08-07 11:39:44 -04:00
2021-03-01 14:57:40 -05:00
2021-05-11 13:17:22 -04:00
2020-08-01 15:56:51 -04:00
2021-06-02 10:45:27 -04:00
2020-08-20 21:03:22 -04:00
2020-08-20 21:03:22 -04:00
2020-09-09 14:21:30 -04:00
2021-05-26 14:21:21 -04:00
2021-06-02 10:45:27 -04:00
2021-03-27 12:53:40 -04:00
2021-03-05 18:59:01 -05:00
2020-12-01 12:31:22 -05:00
2020-05-08 11:05:14 -04:00
2021-03-05 18:59:01 -05:00
2021-03-29 21:20:57 -04:00
2021-01-08 14:01:34 -05:00
2021-06-09 18:58:35 -04:00
2021-03-18 23:38:07 -04:00
2021-03-07 13:48:54 -05:00
2020-12-01 11:36:37 -05:00
2021-02-01 10:37:19 -05:00
2021-07-25 20:20:15 -04:00
2021-04-30 11:09:08 -04:00
2019-02-16 08:16:37 -05:00
2020-06-15 17:15:53 -04:00
2020-06-15 17:15:53 -04:00
2020-09-26 20:55:56 -04:00
2021-06-18 10:53:12 -04:00
2021-03-27 14:52:21 -04:00
2021-04-15 13:53:06 -04:00
2021-06-14 15:09:55 -04:00
2021-04-09 17:47:16 -04:00
2021-03-05 18:59:01 -05:00
2021-06-14 15:09:55 -04:00
2021-07-25 20:20:15 -04:00
2021-04-30 11:40:37 -04:00
2021-06-02 11:11:19 -04:00
2020-05-05 11:08:11 -04:00
2021-01-20 16:25:25 -05:00
2021-03-25 10:49:17 -04:00
2021-07-08 11:00:23 -04:00
2021-06-02 10:45:27 -04:00
2021-05-26 12:57:31 -04:00
2021-07-04 09:48:45 -04:00
2021-01-20 16:25:25 -05:00
2021-06-22 15:18:05 -04:00
2021-05-26 11:57:57 -04:00
2020-07-25 11:39:39 -04:00
2021-04-07 19:05:23 -04:00
2021-03-31 22:13:36 -04:00
2021-02-01 10:37:19 -05:00
2018-03-17 13:06:51 -04:00
2021-04-09 20:27:38 -04:00
2021-07-20 10:34:14 -04:00
2020-09-26 20:55:56 -04:00
2021-02-02 14:30:04 -05:00
2021-02-20 09:23:13 -05:00
2021-07-04 10:11:02 -04:00
2020-12-06 21:55:26 -05:00
2020-10-08 15:25:09 -04:00
2021-03-16 11:31:24 -04:00
2021-02-27 10:39:46 -05:00
2021-07-23 13:37:20 -04:00
2021-03-18 23:36:25 -04:00
2021-02-28 18:30:25 -05:00
2021-07-23 13:37:20 -04:00
2021-03-29 21:20:57 -04:00
2021-01-22 13:41:34 -05:00
2020-08-20 21:03:22 -04:00
2020-11-18 20:10:21 -05:00
2021-06-22 15:15:03 -04:00
2021-06-02 11:11:19 -04:00