You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
Don't close drawer in launcher
This commit is contained in:
@@ -65,7 +65,7 @@ def close_drawer(to_launcher=False):
|
||||
if drawer_open:
|
||||
drawer_open=False
|
||||
drawer.add_flag(lv.obj.FLAG.HIDDEN)
|
||||
if not to_launcher:
|
||||
if not to_launcher and not is_launcher(foreground_app_name):
|
||||
close_bar()
|
||||
|
||||
def open_bar():
|
||||
@@ -270,6 +270,10 @@ import traceback
|
||||
import uio
|
||||
import time
|
||||
|
||||
def is_launcher(app_name):
|
||||
# Simple check, could be more elaborate by checking the MANIFEST.MF for the app...
|
||||
return "launcher" in app_name
|
||||
|
||||
def parse_manifest(manifest_path):
|
||||
name = "Unknown"
|
||||
start_script = "assets/start.py"
|
||||
|
||||
Reference in New Issue
Block a user