You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
Use PackageManager.get_app_list()
This commit is contained in:
@@ -37,8 +37,6 @@ class Launcher(mpos.apps.Activity):
|
||||
iconcont_width = icon_size + label_height
|
||||
iconcont_height = icon_size + label_height
|
||||
|
||||
app_list = PackageManager.app_list
|
||||
|
||||
import time
|
||||
start = time.ticks_ms()
|
||||
|
||||
@@ -50,7 +48,7 @@ class Launcher(mpos.apps.Activity):
|
||||
print("WARNING: could not get default focusgroup")
|
||||
|
||||
# Create UI for each app
|
||||
for app in app_list:
|
||||
for app in PackageManager.get_app_list():
|
||||
app_name = app.name
|
||||
app_dir_fullpath = app.installed_path
|
||||
print(f"Adding app {app_name} from {app_dir_fullpath}")
|
||||
|
||||
Reference in New Issue
Block a user