implement on_ready callback

This commit is contained in:
yggverse 2025-02-15 00:47:45 +02:00
parent df9e039dd2
commit 1c6e676557
3 changed files with 52 additions and 25 deletions

View file

@ -131,7 +131,11 @@ impl Content {
text
}
pub fn to_directory(&self, file: &File, callback: impl Fn(&File) + 'static) {
pub fn to_directory(
&self,
file: &File,
callback: (impl Fn() + 'static, impl Fn(&File) + 'static),
) {
self.clean();
self.g_box.append(&Directory::for_file(file, callback))
}