File tree Expand file tree Collapse file tree
internal_filesystem/builtin/apps/com.example.appstore/assets Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -248,7 +248,7 @@ def download_icons():
248248 image_dsc = download_icon (app .icon_url )
249249 app .image_dsc = image_dsc
250250 print ("Finished downloading icons, scheduling stop of refresh timer..." )
251- # lv.async_call(lambda l: refresh_icons.pause(), None)
251+ lv .async_call (lambda l : refresh_icons .pause (), None )
252252
253253def load_icon (icon_path ):
254254 with open (icon_path , 'rb' ) as f :
@@ -426,13 +426,11 @@ def refresh_icons_cb(timer):
426426 #print("Refreshing app icons...")
427427 for app in apps :
428428 #print("Refreshing icon for {app.name}")
429- #app.image.set_src(app.image_dsc)
430- pass
429+ app .image .set_src (app .image_dsc )
431430
432431def janitor_cb (timer ):
433432 global appscreen , app_detail_screen
434- print (f"foreground screen is { lv .screen_active ()} " )
435- if lv .screen_active () != appscreen or lv .screen_active () != app_detail_screen :
433+ if lv .screen_active () != appscreen and lv .screen_active () != app_detail_screen :
436434 print ("appstore.py backgrounded, cleaning up..." )
437435 janitor .delete ()
438436 refresh_icons .delete ()
You can’t perform that action at this time.
0 commit comments