replace arguments with callback

This commit is contained in:
yggverse 2025-01-14 08:29:56 +02:00
parent 44be1a7dab
commit e0adc0661c
3 changed files with 7 additions and 17 deletions

View file

@ -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));
}
}