GDirectoryModel: Add on_path_change hook

This commit is contained in:
Andreas Kling 2019-09-13 21:43:23 +02:00
commit f1c4b65089
Notes: sideshowbarker 2024-07-19 12:07:40 +09:00
2 changed files with 3 additions and 0 deletions

View file

@ -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();
}