Allow clearing the spell check highlighting also on big docs

This commit is contained in:
Veronica Berglyd Olsen
2023-04-13 18:11:59 +02:00
parent cf770ff77f
commit 0ffb6eee37
+2 -1
View File
@@ -753,7 +753,8 @@ class GuiDocEditor(QTextEdit):
self.mainGui.mainMenu.setSpellCheck(theMode)
self.theProject.data.setSpellCheck(theMode)
self.highLight.setSpellCheck(theMode)
if not self._bigDoc:
if not self._bigDoc or theMode is False:
# We don't run the spell checker automatically on big docs
self.spellCheckDocument()
logger.debug("Spell check is set to '%s'", str(theMode))