mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 00:57:36 +00:00
LibGUI: Handle metadata changes in FileSystemModel
This commit is contained in:
parent
cbfa363b2b
commit
60f9aa5cb8
1 changed files with 8 additions and 3 deletions
|
@ -481,9 +481,14 @@ void FileSystemModel::handle_file_event(Core::FileWatcherEvent const& event)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case Core::FileWatcherEvent::Type::MetadataModified: {
|
case Core::FileWatcherEvent::Type::MetadataModified: {
|
||||||
// FIXME: Do we do anything in case the metadata is modified?
|
auto child = node_for_path(event.event_path);
|
||||||
// Perhaps re-stat'ing the modified node would make sense
|
if (!child.has_value()) {
|
||||||
// here, but let's leave that to when we actually need it.
|
dbgln("Got a MetadataModified on '{}' but the child does not exist?!", event.event_path);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
auto& mutable_child = const_cast<Node&>(child.value());
|
||||||
|
mutable_child.fetch_data(mutable_child.full_path(), &mutable_child == m_root);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue