From c1c20f8a1f489cec54f40861c3e9bc3bb9154b1e Mon Sep 17 00:00:00 2001 From: chrys Date: Mon, 7 Jan 2019 13:50:20 +0100 Subject: [PATCH] Update toggle_speech.py --- src/fenrirscreenreader/commands/commands/toggle_speech.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/fenrirscreenreader/commands/commands/toggle_speech.py b/src/fenrirscreenreader/commands/commands/toggle_speech.py index 94348750..a3d0b23e 100644 --- a/src/fenrirscreenreader/commands/commands/toggle_speech.py +++ b/src/fenrirscreenreader/commands/commands/toggle_speech.py @@ -18,6 +18,7 @@ class command(): def run(self): if self.env['runtime']['settingsManager'].getSettingAsBool('speech', 'enabled'): + self.env['runtime']['outputManager'].interruptOutput() self.env['runtime']['outputManager'].presentText(_('speech disabled'), soundIcon='SpeechOff', interrupt=True) self.env['runtime']['settingsManager'].setSetting('speech', 'enabled', str(not self.env['runtime']['settingsManager'].getSettingAsBool('speech', 'enabled'))) if self.env['runtime']['settingsManager'].getSettingAsBool('speech', 'enabled'):