mirror of
https://github.com/JakeStanger/ironbar.git
synced 2024-11-22 05:34:35 +03:00
fix(tray): tray icons not disappearing on close
This commit is contained in:
parent
5aa9f37fe4
commit
f364bb64fb
@ -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);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user