mirror of
https://github.com/RGBCube/serenity
synced 2025-07-05 18:07:34 +00:00
GDirectoryModel: Add on_path_change hook
This commit is contained in:
parent
bf23f1e8bc
commit
f1c4b65089
2 changed files with 3 additions and 0 deletions
|
@ -351,5 +351,7 @@ void GDirectoryModel::open(const StringView& a_path)
|
|||
int rc = read(m_notifier->fd(), buffer, sizeof(buffer));
|
||||
ASSERT(rc >= 0);
|
||||
};
|
||||
if (on_path_change)
|
||||
on_path_change();
|
||||
update();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue