We should read back the language dictionary setting from the spell class before updating status bar

This commit is contained in:
Veronica K. B. Olsen
2019-11-15 21:39:06 +01:00
parent 653c7bbe80
commit e841e0211a
5 changed files with 14 additions and 7 deletions
+2
View File
@@ -32,10 +32,12 @@ class NWSpellEnchant(NWSpellCheck):
"""
try:
self.theDict = enchant.Dict(theLang)
self.spellLanguage = theLang
logger.debug("Enchant spell checking for language %s loaded" % theLang)
except:
logger.error("Failed to load enchant spell checking for language %s" % theLang)
self.theDict = NWSpellEnchantDummy()
self.spellLanguage = None
self._readProjectDictionary(projectDict)
for pWord in self.PROJW: