Skip to content

Commit

Permalink
systray: fix remove items (#1098)
Browse files Browse the repository at this point in the history
* systray: fix remove item

* docs: add entry to CHANGELOG.md
  • Loading branch information
vnva authored May 6, 2024
1 parent 3dca22d commit d1fde92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
1 change: 1 addition & 0 deletions crates/eww/src/widgets/systray.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit d1fde92

Please sign in to comment.