Skip to content
Snippets Groups Projects
Commit 0b489600 authored by Philip Stewart's avatar Philip Stewart
Browse files

style(simple_menu): make code more readable

parent 2f204129
No related branches found
No related tags found
1 merge request!424feat(simple_menu): Make scroll buttons configurable
This commit is part of merge request !424. Comments created here will be created in the context of that merge request.
......@@ -195,11 +195,8 @@ class Menu:
self.select_time = time.time_ms()
self.disp = display.open()
try:
config_right_buttons_scroll = config.get_string("right_scroll")
if (
config_right_buttons_scroll.lower() == "true"
or config_right_buttons_scroll == "1"
):
right_scroll_str = config.get_string("right_scroll")
if right_scroll_str.lower() in ["true", "1"]:
right_buttons_scroll = True
except OSError:
right_buttons_scroll = self.right_buttons_scroll
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment