Skip to content

Commit

Permalink
sn-item.c: Update the icon also, if the client's state changes.
Browse files Browse the repository at this point in the history
The state can decide which icon to use, so if it changes, the icon
may also, even if we haven't gotten an explicit icon changed signal.
  • Loading branch information
mtwebster committed Sep 18, 2020
1 parent 2e8b628 commit ee6d272
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xapp-sn-watcher/sn-item.c
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@ get_all_properties_callback (GObject *source_object,
update_menu (item, new_props);
}

if (new_props->update_icon)
if (new_props->update_icon || new_props->update_status)
{
update_icon (item, new_props);
}
Expand Down

0 comments on commit ee6d272

Please sign in to comment.