diff --git a/src/modules/custom.rs b/src/modules/custom.rs index ca6997d..159c22e 100644 --- a/src/modules/custom.rs +++ b/src/modules/custom.rs @@ -42,7 +42,7 @@ pub struct Widget { label: Option, name: Option, class: Option, - exec: Option, + on_click: Option, orientation: Option, } @@ -135,7 +135,7 @@ impl Widget { button.style_context().add_class(&class); } - if let Some(exec) = self.exec { + if let Some(exec) = self.on_click { button.connect_clicked(move |button| { tx.try_send(ExecEvent { cmd: exec.clone(),