Save the bookmarks after changing the storage method

also fix a check that would make the handler never trigger…
This commit is contained in:
mathieui 2015-04-10 17:19:18 +02:00
parent 87e16546b9
commit 190c7a4a7b
No known key found for this signature in database
GPG key ID: C59F84CEEFD616E3

View file

@ -355,9 +355,10 @@ class Core(object):
"""
Called when the use_bookmarks_method option changes
"""
if 'value' not in ('pep', 'privatexml'):
if value not in ('pep', 'privatexml'):
return
self.bookmarks.preferred = value
self.bookmarks.save(self.xmpp, core=self)
def on_gaps_config_change(self, option, value):
"""