1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-08-17 06:41:03 +02:00

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