1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 10:15:07 +00:00

LibGUI: Reify children of root when invalidating in FileSystemModel

This ensures that the children of root also get watched
This commit is contained in:
Adam Harald Jørgensen 2023-10-17 17:16:27 +02:00 committed by Andreas Kling
parent 1ab318b391
commit d1da5b1f0d

View file

@ -400,6 +400,8 @@ void FileSystemModel::invalidate()
m_root->m_parent_of_root = true;
m_root->reify_if_needed();
for (auto const& child : m_root->m_children)
child->reify_if_needed();
Model::invalidate();
}