Update spell_check.py

This commit is contained in:
chrys
2018-09-06 13:47:57 +02:00
committed by GitHub
parent 825f253858
commit 8614e19b25

View File

@ -26,7 +26,6 @@ class command():
return _('checks the spelling of the current word')
def updateSpellLanguage(self):
if not initialized:
self.env['runtime']['outputManager'].presentText(_('pyenchant is not installed'), interrupt=True)
return
self.spellChecker = enchant.Dict(self.env['runtime']['settingsManager'].getSetting('general', 'spellCheckLanguage'))
self.language = self.env['runtime']['settingsManager'].getSetting('general', 'spellCheckLanguage')