From 1720ab78e2c832cb61b8a7c4026203f6bcd4f6ac Mon Sep 17 00:00:00 2001 From: chrys Date: Sun, 2 Oct 2016 16:48:06 +0200 Subject: [PATCH] fix autoread Enable/disable command --- src/fenrir-package/commands/commands/toggle_auto_read.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)