fix(tray): tray icons not disappearing on close

This commit is contained in:
Jake Stanger 2024-11-17 14:47:50 +00:00
parent 5aa9f37fe4
commit f364bb64fb
No known key found for this signature in database
GPG Key ID: C51FC8F9CB0BEA61

View File

@ -160,7 +160,7 @@ fn on_update(
menu_item.set_label(&label);
};
menu_item.widget.show();
menu_item.event_box.show();
menus.insert(address.into(), menu_item);
}
Event::Update(address, update) => {
@ -210,7 +210,7 @@ fn on_update(
debug!("Removing tray item at '{address}'");
if let Some(menu) = menus.get(address.as_str()) {
container.remove(&menu.widget);
container.remove(&menu.event_box);
}
}
};