add toggle_autoread, typo

This commit is contained in:
chrys
2016-08-08 11:15:47 +02:00
parent f51a5967eb
commit 629fa3576c
6 changed files with 22 additions and 4 deletions

View File

@ -0,0 +1,17 @@
#!/bin/python
class command():
def __init__(self):
pass
def run(self, environment):
environment = environment['runtime']['settingsManager'].setSetting(environment, 'speech', 'autoReadIncomming', str(not environment['runtime']['settingsManager'].getSettingAsBool(environment, 'speech', 'autoReadIncomming')))
if environment['runtime']['settingsManager'].getSettingAsBool(environment, 'speech', 'autoReadIncomming'):
environment['runtime']['outputManager'].presentText(environment, "autoread enabled",soundIconName='', interrupt=True)
else:
environment['runtime']['outputManager'].presentText(environment, "autoread disabled",soundIconName='', interrupt=True)
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass