Browse Source

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 năm trước cách đây
mục cha
commit
1a6affc64b
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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;