From 8b2ba4e79c56594a74e2c41b23e7f09027e26f11 Mon Sep 17 00:00:00 2001 From: Daniel Thompson Date: Mon, 20 Apr 2020 18:58:21 +0100 Subject: [PATCH] apps: launcher: Make app.ICON optional --- wasp/apps/launcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wasp/apps/launcher.py b/wasp/apps/launcher.py index 071a90c..37e7ca7 100644 --- a/wasp/apps/launcher.py +++ b/wasp/apps/launcher.py @@ -66,7 +66,7 @@ class LauncherApp(): if not app: return draw.set_color(0xffff) - draw.blit(app.ICON, x+13, y+12) + draw.blit(app.ICON if 'ICON' in dir(app) else icons.app, x+13, y+12) draw.set_color(0xbdb6) draw.string(app.NAME, x, y+120-30, 120)