return reference to counter Label

This commit is contained in:
yggverse 2025-01-22 07:55:31 +02:00
parent c72da12c26
commit 97af26c44e
3 changed files with 8 additions and 6 deletions

View file

@ -4,7 +4,7 @@ mod titan;
mod widget;
use super::TabAction;
use gtk::glib::Uri;
use gtk::{glib::Uri, Label};
use response::Response;
use sensitive::Sensitive;
use std::rc::Rc;
@ -65,7 +65,7 @@ impl Input {
));
}
pub fn set_new_titan(&self, on_send: impl Fn(&[u8]) + 'static) {
pub fn set_new_titan(&self, on_send: impl Fn(&[u8], &Label) + 'static) {
self.widget
.update(Some(&Titan::build(on_send).widget.g_box));
}