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:
parent
5aa9f37fe4
commit
f364bb64fb
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue