Skip to content
Snippets Groups Projects
Commit 45b3a1a1 authored by koalo's avatar koalo
Browse files

fix: Do not crash in case of no apps

parent f33167e3
No related branches found
No related tags found
No related merge requests found
......@@ -71,6 +71,13 @@ def main():
numapps = len(applist)
current = 0
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:
# Scroll down
draw_menu(disp, applist, current, -8)
......
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