diff options
Diffstat (limited to 'src/contacts-contact-pane.vala')
-rw-r--r-- | src/contacts-contact-pane.vala | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/contacts-contact-pane.vala b/src/contacts-contact-pane.vala index 022fa01..fad313c 100644 --- a/src/contacts-contact-pane.vala +++ b/src/contacts-contact-pane.vala @@ -387,6 +387,18 @@ public class Contacts.ContactPane : Notebook { } }); } + if (editor.avatar_changed ()) { + var v = editor.get_avatar_value (); + Contact.set_individual_property.begin (contact, + "avatar", v, + (obj, result) => { + try { + Contact.set_individual_property.end (result); + } catch (GLib.Error e) { + App.app.show_message (e.message); + } + }); + } } editor.clear (); @@ -424,6 +436,11 @@ public class Contacts.ContactPane : Notebook { details.set ("full-name", v); } + if (editor.avatar_changed ()) { + var v = editor.get_avatar_value (); + details.set ("avatar", v); + } + foreach (var prop in editor.properties_changed ().entries) { details.set (prop.key, prop.value.value); } |