implement navigation callback

This commit is contained in:
yggverse 2025-02-14 22:07:54 +02:00
parent 454ebe0170
commit 8ddd90bb11
3 changed files with 140 additions and 93 deletions

View file

@ -131,9 +131,9 @@ impl Content {
text
}
pub fn to_directory(&self, file: &File) {
pub fn to_directory(&self, file: &File, callback: impl Fn(&File) + 'static) {
self.clean();
self.g_box.append(&Directory::for_file(file))
self.g_box.append(&Directory::for_file(file, callback))
}
/// * system `source:`