From f6e2992cdc794aaf06a8dae47d26405e37744d22 Mon Sep 17 00:00:00 2001 From: chrys Date: Tue, 26 Jul 2016 00:16:28 +0200 Subject: [PATCH] fix toggle messages --- src/fenrir-package/commands/commands/toggle_output_enable.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fenrir-package/commands/commands/toggle_output_enable.py b/src/fenrir-package/commands/commands/toggle_output_enable.py index c5d78a3e..14be86c6 100644 --- a/src/fenrir-package/commands/commands/toggle_output_enable.py +++ b/src/fenrir-package/commands/commands/toggle_output_enable.py @@ -11,11 +11,11 @@ class command(): environment = environment['runtime']['settingsManager'].setSetting(environment, 'speech', 'enabled','False') environment = environment['runtime']['settingsManager'].setSetting(environment, 'sound', 'enabled','False') environment = environment['runtime']['settingsManager'].setSetting(environment, 'braille', 'enabled','False') - else: - environment['runtime']['outputManager'].presentText(environment, "fenrir unmuted") + else: environment = environment['runtime']['settingsManager'].setSetting(environment, 'speech', 'enabled','True') environment = environment['runtime']['settingsManager'].setSetting(environment, 'sound', 'enabled','True') environment = environment['runtime']['settingsManager'].setSetting(environment, 'braille', 'enabled','True') + environment['runtime']['outputManager'].presentText(environment, "fenrir unmuted") return environment def setCallback(self, callback): pass