diff --git a/src/fenrir-package/commands/commands/toggle_auto_read.py b/src/fenrir-package/commands/commands/toggle_auto_read.py index 01b3060d..3090e2b2 100644 --- a/src/fenrir-package/commands/commands/toggle_auto_read.py +++ b/src/fenrir-package/commands/commands/toggle_auto_read.py @@ -16,8 +16,8 @@ class command(): return 'enables or disables automatic reading of new text as it appears' def run(self): - self.env['runtime']['settingsManager'].setSetting('speech', 'autoReadIncomming', str(not self.env['runtime']['settingsManager'].getSettingAsBool('speech', 'autoReadIncomming'))) - if self.env['runtime']['settingsManager'].getSettingAsBool('speech', 'autoReadIncomming'): + self.env['runtime']['settingsManager'].setSetting('speech', 'autoReadIncoming', str(not self.env['runtime']['settingsManager'].getSettingAsBool('speech', 'autoReadIncoming'))) + if self.env['runtime']['settingsManager'].getSettingAsBool('speech', 'autoReadIncoming'): self.env['runtime']['outputManager'].presentText("autoread enabled", soundIcon='', interrupt=True) else: self.env['runtime']['outputManager'].presentText("autoread disabled", soundIcon='', interrupt=True)