Skip to content

Commit

Permalink
fix(tray): tray icons not disappearing on close
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeStanger committed Nov 17, 2024
1 parent 5aa9f37 commit f364bb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/tray/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down Expand Up @@ -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);
}
}
};
Expand Down

0 comments on commit f364bb6

Please sign in to comment.