Skip to content

Commit 4376808

Browse files
File Manager app: add home dir shortcut
1 parent 8fc1373 commit 4376808

File tree

1 file changed

+2
-0
lines changed
  • internal_filesystem/apps/com.micropythonos.filemanager/assets

1 file changed

+2
-0
lines changed

internal_filesystem/apps/com.micropythonos.filemanager/assets/file_manager.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ def onCreate(self):
2525
self.file_explorer.align(lv.ALIGN.CENTER, 0, 0)
2626
# Attach event callback
2727
self.file_explorer.add_event_cb(self.file_explorer_event_cb, lv.EVENT.ALL, None)
28+
self.file_explorer.explorer_set_quick_access_path(lv.EXPLORER.HOME_DIR, "M:/home/user/")
29+
self.file_explorer.explorer_set_quick_access_path(lv.EXPLORER.IMAGE_DIR, "M:/data/images/")
2830
self.setContentView(screen)
2931

3032
def file_explorer_event_cb(self, event):

0 commit comments

Comments
 (0)