diff --git a/manuskript/functions/spellchecker.py b/manuskript/functions/spellchecker.py index 61da802f..2e884d0b 100644 --- a/manuskript/functions/spellchecker.py +++ b/manuskript/functions/spellchecker.py @@ -538,10 +538,10 @@ def get_languagetool_locale_language(): class LanguageToolDictionary(BasicDictionary): - if use_language_check: - _tool = None - else: + if languagetool: _tool = languagetool.LanguageTool() + else: + _tool = None def __init__(self, name): BasicDictionary.__init__(self, name)