mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
replace arguments with callback
This commit is contained in:
parent
44be1a7dab
commit
e0adc0661c
3 changed files with 7 additions and 17 deletions
|
|
@ -66,8 +66,8 @@ impl Input {
|
|||
));
|
||||
}
|
||||
|
||||
pub fn set_new_titan(&self, action: &Rc<TabAction>, base: &Uri, title: Option<&str>) {
|
||||
pub fn set_new_titan(&self, callback: impl Fn(&[u8]) + 'static) {
|
||||
self.widget
|
||||
.update(Some(&Titan::build(action, base, title).widget.g_box));
|
||||
.update(Some(&Titan::build(callback).widget.g_box));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue