mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-24 15:45:44 +01:00
Fix user dictionaries not being re-read after using Preferences
This commit is contained in:
parent
7dc6964421
commit
7bb35f9ffd
2 changed files with 3 additions and 2 deletions
|
|
@ -120,6 +120,7 @@ def preferences(self):
|
|||
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 @@ def __init__(self):
|
|||
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…
Reference in a new issue