jdgeenen / gcontactsync

Synchronizes contacts & groups between Thunderbird or SeaMonkey and Google Contacts. Imports Facebook friends and Twitter contacts
Other
70 stars 15 forks source link

add check to skip init() of gContactSync #127

Closed jobisoft closed 5 years ago

jobisoft commented 5 years ago

This is John from last weeks email regarding the UI clash with TbSync. Thanks for your friendly response.

This PR adds a little check to skip the init() of gContactSync.CardDialogOverlay, if the directory of that card has certain flag set. All TbSync directories will have that flag set :-).

In my view, stopping init() from being executed is even better, than trying to role back what init() has done.

jobisoft commented 5 years ago

Do not pull, I have to check something.

jobisoft commented 5 years ago

I changed it bit:

The inject-check is now based upon the presence of the "gContactSyncSkipped" stringValue at the parent directory.

Is there a more basic check, to find out if the directory is a gContactSync address book? So the extra stringValue to prevent gContactSync from injecting is not needed?