From 1a6affc64b06d9372c0ee014e01cdcd2a3f791ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Harald=20J=C3=B8rgensen?= <58829763+adamjoer@users.noreply.github.com> Date: Wed, 18 Oct 2023 15:42:52 +0200 Subject: [PATCH] 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. --- Userland/Libraries/LibGUI/FileSystemModel.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Libraries/LibGUI/FileSystemModel.cpp b/Userland/Libraries/LibGUI/FileSystemModel.cpp index 1d1e77ff4f..8fb2455495 100644 --- a/Userland/Libraries/LibGUI/FileSystemModel.cpp +++ b/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;