Skip to content

Commit f9ec35d

Browse files
Use PackageManager.get_app_list()
1 parent 5691058 commit f9ec35d

File tree

1 file changed

+1
-3
lines changed
  • internal_filesystem/builtin/apps/com.micropythonos.launcher/assets

1 file changed

+1
-3
lines changed

internal_filesystem/builtin/apps/com.micropythonos.launcher/assets/launcher.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ def onResume(self, screen):
3737
iconcont_width = icon_size + label_height
3838
iconcont_height = icon_size + label_height
3939

40-
app_list = PackageManager.app_list
41-
4240
import time
4341
start = time.ticks_ms()
4442

@@ -50,7 +48,7 @@ def onResume(self, screen):
5048
print("WARNING: could not get default focusgroup")
5149

5250
# Create UI for each app
53-
for app in app_list:
51+
for app in PackageManager.get_app_list():
5452
app_name = app.name
5553
app_dir_fullpath = app.installed_path
5654
print(f"Adding app {app_name} from {app_dir_fullpath}")

0 commit comments

Comments
 (0)