- the synchronization_enabled parameter is set on the server's config.
- at the next start, the synchronization_enabled is set in the local config and different from the server's value, then it will have no effect
The local value should be taken into account.
The whole block of code:
That line is bad:
Here we can see that the parameter we are looking for is "synchronization_enabled" but when saving into the database we use "sync_enabled". So the preference is never used.