diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f5a6f1..32e2aa8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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). diff --git a/crates/eww/src/widgets/systray.rs b/crates/eww/src/widgets/systray.rs index cf06907..240a97f 100644 --- a/crates/eww/src/widgets/systray.rs +++ b/crates/eww/src/widgets/systray.rs @@ -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); }