Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1dcf5d8

Browse files
Music Player app: add quick access for filesystem
1 parent895e203 commit1dcf5d8

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
importos
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
defonResume(self,screen):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp