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():
numapps = len(applist)
current = 0
for ev in button_events():
if numapps == 0:
disp.print("No apps", posy=0)
disp.print("available", posy=20)
if ev == buttons.BOTTOM_RIGHT:
# Scroll down
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