Commit 45b3a1a1 authored by koalo's avatar koalo
Browse files

fix: Do not crash in case of no apps

parent f33167e3
...@@ -71,6 +71,13 @@ def main(): ...@@ -71,6 +71,13 @@ def main():
numapps = len(applist) numapps = len(applist)
current = 0 current = 0
for ev in button_events(): for ev in button_events():
if numapps == 0:
disp.clear()
disp.print("No apps", posy=0)
disp.print("available", posy=20)
disp.update()
continue
if ev == buttons.BOTTOM_RIGHT: if ev == buttons.BOTTOM_RIGHT:
# Scroll down # Scroll down
draw_menu(disp, applist, current, -8) draw_menu(disp, applist, current, -8)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment