diff --git a/src/fenrir-package/commands/commands/add_word_to_spell_check.py b/src/fenrir-package/commands/commands/add_word_to_spell_check.py index 8b6e492c..a7873114 100644 --- a/src/fenrir-package/commands/commands/add_word_to_spell_check.py +++ b/src/fenrir-package/commands/commands/add_word_to_spell_check.py @@ -11,7 +11,12 @@ class command(): def __init__(self): self.language = '' self.spellChecker = None - + def initialize(self, environment): + return environment + def shutdown(self, environment): + return environment + def getDescription(self): + return 'No Description found' def run(self, environment): if not initialized: environment['runtime']['outputManager'].presentText(environment, 'pychant is not installed', interrupt=True) @@ -42,5 +47,3 @@ class command(): return environment def setCallback(self, callback): pass - def shutdown(self): - pass diff --git a/src/fenrir-package/commands/commands/remove_word_from_spell_check.py b/src/fenrir-package/commands/commands/remove_word_from_spell_check.py index e8c4e618..bf967ffd 100644 --- a/src/fenrir-package/commands/commands/remove_word_from_spell_check.py +++ b/src/fenrir-package/commands/commands/remove_word_from_spell_check.py @@ -11,7 +11,12 @@ class command(): def __init__(self): self.language = '' self.spellChecker = None - + def initialize(self, environment): + return environment + def shutdown(self, environment): + return environment + def getDescription(self): + return 'No Description found' def run(self, environment): if not initialized: environment['runtime']['outputManager'].presentText(environment, 'pychant is not installed', interrupt=True) @@ -42,5 +47,3 @@ class command(): return environment def setCallback(self, callback): pass - def shutdown(self): - pass diff --git a/src/fenrir-package/commands/commands/spell_check.py b/src/fenrir-package/commands/commands/spell_check.py index 2bc2cc01..10cb34d0 100644 --- a/src/fenrir-package/commands/commands/spell_check.py +++ b/src/fenrir-package/commands/commands/spell_check.py @@ -11,7 +11,12 @@ class command(): def __init__(self): self.language = '' self.spellChecker = None - + def initialize(self, environment): + return environment + def shutdown(self, environment): + return environment + def getDescription(self): + return 'No Description found' def run(self, environment): if not initialized: environment['runtime']['outputManager'].presentText(environment, 'pychant is not installed', interrupt=True) @@ -39,5 +44,3 @@ class command(): return environment def setCallback(self, callback): pass - def shutdown(self): - pass diff --git a/src/fenrir-package/commands/commands/toggle_auto_spell_check.py b/src/fenrir-package/commands/commands/toggle_auto_spell_check.py index 35ad8e79..e899e3ad 100644 --- a/src/fenrir-package/commands/commands/toggle_auto_spell_check.py +++ b/src/fenrir-package/commands/commands/toggle_auto_spell_check.py @@ -3,8 +3,13 @@ class command(): def __init__(self): pass - def run(self, environment): - + def initialize(self, environment): + return environment + def shutdown(self, environment): + return environment + def getDescription(self): + return 'No Description found' + def run(self, environment): environment = environment['runtime']['settingsManager'].setSetting(environment, 'general', 'autoSpellCheck', str(not environment['runtime']['settingsManager'].getSettingAsBool(environment, 'general', 'autoSpellCheck'))) if environment['runtime']['settingsManager'].getSettingAsBool(environment, 'general', 'autoSpellCheck'): environment['runtime']['outputManager'].presentText(environment, "auto spellcheck enabled", soundIcon='', interrupt=True) @@ -13,5 +18,3 @@ class command(): return environment def setCallback(self, callback): pass - def shutdown(self): - pass diff --git a/src/fenrir-package/commands/onScreenChanged/62000-spell_check.py b/src/fenrir-package/commands/onScreenChanged/62000-spell_check.py index 02fa03fb..177a5d68 100644 --- a/src/fenrir-package/commands/onScreenChanged/62000-spell_check.py +++ b/src/fenrir-package/commands/onScreenChanged/62000-spell_check.py @@ -11,7 +11,12 @@ class command(): def __init__(self): self.language = '' self.spellChecker = '' - + def initialize(self, environment): + return environment + def shutdown(self, environment): + return environment + def getDescription(self): + return 'No Description found' def run(self, environment): if not environment['runtime']['settingsManager'].getSettingAsBool(environment, 'general', 'autoSpellCheck'): return environment @@ -62,5 +67,3 @@ class command(): return environment def setCallback(self, callback): pass - def shutdown(self): - pass