瀏覽代碼

LibGUI: Reify new child when handling child creation in FileSystemMode

This ensures that new files added after the setup of the
FileSystemModel are also are watched.
Adam Harald Jørgensen 1 年之前
父節點
當前提交
1a6affc64b
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Userland/Libraries/LibGUI/FileSystemModel.cpp

+ 1 - 0
Userland/Libraries/LibGUI/FileSystemModel.cpp

@@ -437,6 +437,7 @@ void FileSystemModel::handle_file_event(Core::FileWatcherEvent const& event)
             break;
 
         auto child = maybe_child.release_nonnull();
+        child->reify_if_needed();
 
         bool const is_new_child_dir = S_ISDIR(child->mode);
         int insert_index = 0;