From b5b1461b2e65e147024414b6cfbafadc43bfdb8e Mon Sep 17 00:00:00 2001 From: Thomas Farstrike Date: Fri, 25 Apr 2025 09:43:09 +0200 Subject: [PATCH] Fix app start --- apps/com.example.launcher/assets/launcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/com.example.launcher/assets/launcher.py b/apps/com.example.launcher/assets/launcher.py index 6f8c4bc2..96da7c9c 100644 --- a/apps/com.example.launcher/assets/launcher.py +++ b/apps/com.example.launcher/assets/launcher.py @@ -57,6 +57,6 @@ for app_dir in [d for d in uos.listdir(apps_dir) if uos.stat(f"{apps_dir}/{d}")[ label.set_width(iconcont_width) label.align(lv.ALIGN.BOTTOM_MID, 0, 0) label.set_style_text_align(lv.TEXT_ALIGN.CENTER, 0) - app_cont.add_event_cb(lambda e, app_dir=app_dir: start_app(app_dir_fullpath), lv.EVENT.CLICKED, None) + app_cont.add_event_cb(lambda e, app_dir_fullpath=app_dir_fullpath: start_app(app_dir_fullpath), lv.EVENT.CLICKED, None)