From 0e285c2615b66f9cde99d3673a3c29dc95c0b9e4 Mon Sep 17 00:00:00 2001 From: chrys Date: Sun, 18 Dec 2016 23:25:21 +0100 Subject: [PATCH] interrupt current speech on temp disable speech --- src/fenrir/commands/commands/temp_disable_speech.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fenrir/commands/commands/temp_disable_speech.py b/src/fenrir/commands/commands/temp_disable_speech.py index f9bd01f0..9fa577d0 100644 --- a/src/fenrir/commands/commands/temp_disable_speech.py +++ b/src/fenrir/commands/commands/temp_disable_speech.py @@ -20,7 +20,8 @@ class command(): if self.env['runtime']['settingsManager'].getSettingAsBool('speech', 'enabled'): self.env['runtime']['outputManager'].presentText("speech temporary disabled", soundIcon='SpeechOff', interrupt=True) self.env['commandBuffer']['enableSpeechOnKeypress'] = True - self.env['runtime']['settingsManager'].setSetting('speech', 'enabled', str(not self.env['runtime']['settingsManager'].getSettingAsBool('speech', 'enabled'))) + self.env['runtime']['settingsManager'].setSetting('speech', 'enabled', str(not self.env['runtime']['settingsManager'].getSettingAsBool('speech', 'enabled'))) + self.env['runtime']['outputManager'].interruptOutput() def setCallback(self, callback): pass