Audio settings pop-up
This commit is contained in:
@@ -38,14 +38,3 @@ pub trait Tab {
|
||||
#[allow(dead_code)]
|
||||
fn get_type(&self) -> TabType;
|
||||
}
|
||||
|
||||
impl TabType {
|
||||
pub fn register_button(this_rc: RcFrontend, btn: &Rc<ComponentButton>, tab: TabType) {
|
||||
btn.on_click({
|
||||
Box::new(move |_common, _evt| {
|
||||
this_rc.borrow_mut().tasks.push(FrontendTask::SetTab(tab));
|
||||
Ok(())
|
||||
})
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user