mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-12 09:20:36 +00:00
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:
parent
d1da5b1f0d
commit
1a6affc64b
Notes:
sideshowbarker
2024-07-17 06:40:35 +09:00
Author: https://github.com/adamjoer Commit: https://github.com/SerenityOS/serenity/commit/1a6affc64b Pull-request: https://github.com/SerenityOS/serenity/pull/21502
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue