file_manager: send "root_update" notification for all registered directories

This includes non mutable directories such as "config_examples" and "docs".

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Arksine 2021-05-17 19:52:07 -04:00 committed by Eric Callahan
parent 5a2e2b1f3f
commit 6c27885702
1 changed files with 4 additions and 0 deletions

View File

@ -131,6 +131,10 @@ class FileManager:
if root in FULL_ACCESS_ROOTS: if root in FULL_ACCESS_ROOTS:
# Refresh the file list and add watches # Refresh the file list and add watches
self.inotify_handler.add_root_watch(root, path) self.inotify_handler.add_root_watch(root, path)
else:
IOLoop.current().spawn_callback(
self.inotify_handler.notify_filelist_changed,
"root_update", root, path)
return True return True
def get_sd_directory(self): def get_sd_directory(self):