Skip to content

Commit 1dcf5d8

Browse files
Music Player app: add quick access for filesystem
1 parent 895e203 commit 1dcf5d8

File tree

1 file changed

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

1 file changed

+3
-1
lines changed

internal_filesystem/apps/com.micropythonos.musicplayer/assets/music_player.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ def onCreate(self):
2424
self.file_explorer.add_event_cb(self.file_explorer_event_cb, lv.EVENT.ALL, None)
2525
import os
2626
local_filesystem_dir = os.getcwd().rstrip('/') # if it's / then it has a slash, if it's a subfolder then it doesn't
27-
self.file_explorer.explorer_set_quick_access_path(lv.EXPLORER.HOME_DIR, f"M:{local_filesystem_dir}/")
27+
self.file_explorer.explorer_set_quick_access_path(lv.EXPLORER.FS_DIR, f"M:{local_filesystem_dir}")
28+
self.file_explorer.explorer_set_quick_access_path(lv.EXPLORER.HOME_DIR, f"M:{local_filesystem_dir}/sdcard")
2829
self.file_explorer.explorer_set_quick_access_path(lv.EXPLORER.MUSIC_DIR, f"M:{local_filesystem_dir}/sdcard/music")
30+
#self.file_explorer.explorer_set_sort(lv.EXPLORER_SORT.KIND)
2931
self.setContentView(screen)
3032

3133
def onResume(self, screen):

0 commit comments

Comments
 (0)