fix(event): use builtin event handler instead custom
This commit is contained in:
parent
ef3158e732
commit
2dc02ce79e
|
@ -110,10 +110,9 @@ impl InfoBarBuilder {
|
|||
|
||||
let info_bar_to_close = info_bar.clone();
|
||||
|
||||
EventHandler::new(info_bar_close_btn.clone(), move |_| {
|
||||
info_bar_close_btn.connect_clicked(move |_| {
|
||||
info_bar_to_close.set_reveal_child(false);
|
||||
})
|
||||
.on_click();
|
||||
});
|
||||
|
||||
&INFO_BAR_INSTANCE
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue