Skip to content

Commit 5fb02a9

Browse files
authored
Merge pull request #4 from cclauss/patch-2
Add a call to contacts.save()
2 parents e5b1ce0 + d677c07 commit 5fb02a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

module/contacts-module-access-profile-picture.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ def main():
5050
mutable_contact = p.mutableCopy().autorelease()
5151
# Assign new image data...
5252
mutable_contact.imageData = new_img_bytes
53+
contacts.save()
5354
# Create a save request for he contact, and execute it...
5455
save_req = CNSaveRequest.new().autorelease()
5556
save_req.updateContact_(mutable_contact)
5657
store.executeSaveRequest_error_(save_req, None)
5758

5859
if __name__ == '__main__':
5960
main()
60-

0 commit comments

Comments
 (0)