mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
implement navigation callback
This commit is contained in:
parent
454ebe0170
commit
8ddd90bb11
3 changed files with 140 additions and 93 deletions
|
|
@ -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:`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue