Move all handling of spell check instance to shared class
This commit is contained in:
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user