mirror of
https://github.com/elkowar/eww.git
synced 2024-07-07 08:16:29 +03:00
systray: fix remove items (#1098)
* systray: fix remove item * docs: add entry to CHANGELOG.md
This commit is contained in:
parent
3dca22deb1
commit
d1fde927d2
|
@ -6,6 +6,7 @@ All notable changes to eww will be listed here, starting at changes since versio
|
|||
|
||||
### Fixes
|
||||
- Fix and refactor nix flake (By: w-lfchen)
|
||||
- Fix remove items from systray (By: vnva)
|
||||
|
||||
### Features
|
||||
- Add `:truncate` property to labels, disabled by default (except in cases where truncation would be enabled in version `0.5.0` and before) (By: Rayzeq).
|
||||
|
|
|
@ -106,6 +106,7 @@ impl notifier_host::Host for Tray {
|
|||
fn remove_item(&mut self, id: &str) {
|
||||
if let Some(item) = self.items.get(id) {
|
||||
self.container.remove(&item.widget);
|
||||
self.items.remove(id);
|
||||
} else {
|
||||
log::warn!("Tried to remove nonexistent item {:?} from systray", id);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user