wgui: component callbacks refactoring

This commit is contained in:
Aleksander
2025-09-16 20:35:28 +02:00
parent 0fdc0e3828
commit dfec935388
7 changed files with 24 additions and 64 deletions

View File

@@ -42,7 +42,7 @@ pub trait Tab {
impl TabType {
pub fn register_button(this_rc: RcFrontend, btn: &Rc<ComponentButton>, tab: TabType) {
btn.on_click({
Box::new(move |_evt| {
Box::new(move |_common, _evt| {
this_rc.borrow_mut().push_task(FrontendTask::SetTab(tab));
Ok(())
})