mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Fix user dictionaries not being re-read after using Preferences
This commit is contained in:
parent
7dc6964421
commit
7bb35f9ffd
@ -120,6 +120,7 @@ class Boss(QObject):
|
||||
if p.exec_() == p.Accepted:
|
||||
if p.dictionaries_changed:
|
||||
dictionaries.clear_caches()
|
||||
dictionaries.initialize(force=True) # Reread user dictionaries
|
||||
for ed in editors.itervalues():
|
||||
ed.apply_settings(dictionaries_changed=p.dictionaries_changed)
|
||||
setup_cssutils_serialization()
|
||||
|
@ -184,8 +184,8 @@ class Dictionaries(object):
|
||||
self.default_locale = parse_lang_code('en-US')
|
||||
self.ui_locale = self.default_locale
|
||||
|
||||
def initialize(self):
|
||||
if not hasattr(self, 'active_user_dictionaries'):
|
||||
def initialize(self, force=False):
|
||||
if force or not hasattr(self, 'active_user_dictionaries'):
|
||||
self.read_user_dictionaries()
|
||||
|
||||
def clear_caches(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user