remove extra data type definition

This commit is contained in:
yggverse 2024-09-28 02:29:14 +03:00
parent a2c4389498
commit 76ddc32a7c

View File

@ -34,7 +34,7 @@ impl Tab {
// Actions
pub fn activate(&self, tab: Arc<Self>) {
self.widget.connect_page_removed({
move |_, widget: &Widget, _| {
move |_, widget, _| {
// Cleanup HashMap index
let id = &widget.widget_name();
tab.labels.borrow_mut().remove(id);