wgui: component callbacks refactoring
This commit is contained in:
@@ -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(())
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user