Skip to content

Commit e24f8ef

Browse files
AppStore app: remove unneeded event handling
1 parent 6a9ae72 commit e24f8ef

File tree

1 file changed

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

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,7 @@ async def download_app_index(self, json_url):
7676
print("Sort apps by app.name")
7777
self.apps.sort(key=lambda x: x.name.lower()) # Use .lower() for case-insensitive sorting
7878
print("Creating apps list...")
79-
created_app_list_event = TaskManager.notify_event() # wait for the list to be shown before downloading the icons
80-
self.update_ui_threadsafe_if_foreground(self.create_apps_list, event=created_app_list_event)
81-
await created_app_list_event.wait()
79+
self.update_ui_threadsafe_if_foreground(self.create_apps_list)
8280
await TaskManager.sleep(0.1) # give the UI time to display the app list before starting to download
8381
print("awaiting self.download_icons()")
8482
await self.download_icons()

0 commit comments

Comments
 (0)