fix(event): use builtin event handler instead custom

This commit is contained in:
doryan 2024-08-10 01:04:34 +04:00
parent ef3158e732
commit 2dc02ce79e

View File

@ -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
}