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.
This commit is contained in:
Adam Harald Jørgensen 2023-10-18 15:42:52 +02:00 committed by Andreas Kling
parent d1da5b1f0d
commit 1a6affc64b
Notes: sideshowbarker 2024-07-17 06:40:35 +09:00

View file

@ -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;