diff options
author | Niels De Graef <nielsdegraef@gmail.com> | 2023-02-21 08:57:04 +0100 |
---|---|---|
committer | Niels De Graef <nielsdegraef@gmail.com> | 2023-02-21 15:02:47 +0000 |
commit | 8059da0fa9d0b8743eb18db578358726dc14660e (patch) | |
tree | 06eaa1695250d7bb830eab48df0ffca44f4f0b59 /src/contacts-avatar.vala | |
parent | 0f2d408c1a3ec818f3f59fce5a04aeae88f2ef6c (diff) | |
download | gnome-contacts-8059da0fa9d0b8743eb18db578358726dc14660e.tar.gz |
avatar: set pixbuf to null if avatar is removednielsdg/avatar-button
This fixes an issue where removing an avatar from a contact would not
update the UI, as the current pixbuf would still keep being displayed.
Diffstat (limited to 'src/contacts-avatar.vala')
-rw-r--r-- | src/contacts-avatar.vala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/contacts-avatar.vala b/src/contacts-avatar.vala index 9f26f11..6ab3bb4 100644 --- a/src/contacts-avatar.vala +++ b/src/contacts-avatar.vala @@ -116,8 +116,10 @@ public class Contacts.Avatar : Adw.Bin { } private async void load_avatar (LoadableIcon? icon) { - if (icon == null) + if (icon == null) { + set_pixbuf (null); return; + } try { var stream = yield icon.load_async (this.avatar_size, null); |