mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
implement on_ready callback
This commit is contained in:
parent
df9e039dd2
commit
1c6e676557
3 changed files with 52 additions and 25 deletions
|
|
@ -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))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue