1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-09-15 19:26:58 +02:00

chore(deps): update system-tray

This commit is contained in:
Jake Stanger 2025-07-14 19:27:51 +01:00
commit b68e4b4af9
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61
4 changed files with 13 additions and 11 deletions

View file

@ -181,9 +181,11 @@ fn on_update(
UpdateEvent::AttentionIcon(_icon) => {
warn!("received unimplemented NewAttentionIcon event");
}
UpdateEvent::Icon(icon) => {
if icon.as_ref() != menu_item.icon_name() {
menu_item.set_icon_name(icon);
UpdateEvent::Icon { icon_name, icon_pixmap} => {
menu_item.icon_pixmap = icon_pixmap;
if icon_name.as_ref() != menu_item.icon_name() {
menu_item.set_icon_name(icon_name);
match icon::get_image(menu_item, icon_size, prefer_icons, icon_theme) {
Ok(image) => menu_item.set_image(&image),
Err(_) => menu_item.show_label(),