Move all handling of spell check instance to shared class

This commit is contained in:
Veronica Berglyd Olsen
2023-08-24 22:33:53 +02:00
parent b54f81355a
commit a72c824d8b
7 changed files with 23 additions and 45 deletions
+1 -5
View File
@@ -97,6 +97,7 @@ class NWSpellEnchant:
if self._enchant is None:
self._enchant = FakeEnchant()
else:
self._userDict.load()
for word in self._userDict:
self._enchant.add_to_session(word)
@@ -136,11 +137,6 @@ class NWSpellEnchant:
return added
def loadUserWordList(self) -> None:
"""Load the user word list from the project."""
self._userDict.load()
return
def listDictionaries(self) -> list[tuple[str, str]]:
"""Wrapper function for pyenchant."""
retList = []