Skip to content

Commit d4b8a7d

Browse files
Don't close drawer in launcher
1 parent 58b02ea commit d4b8a7d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

internal_filesystem/main.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def close_drawer(to_launcher=False):
6565
if drawer_open:
6666
drawer_open=False
6767
drawer.add_flag(lv.obj.FLAG.HIDDEN)
68-
if not to_launcher:
68+
if not to_launcher and not is_launcher(foreground_app_name):
6969
close_bar()
7070

7171
def open_bar():
@@ -270,6 +270,10 @@ def launcher_event(e):
270270
import uio
271271
import time
272272

273+
def is_launcher(app_name):
274+
# Simple check, could be more elaborate by checking the MANIFEST.MF for the app...
275+
return "launcher" in app_name
276+
273277
def parse_manifest(manifest_path):
274278
name = "Unknown"
275279
start_script = "assets/start.py"

0 commit comments

Comments
 (0)