add Temp Disable Speech to remoteManager

This commit is contained in:
Chrys
2019-04-05 21:12:07 +02:00
parent ddcd0b9071
commit 3461b88969
3 changed files with 14 additions and 6 deletions

View File

@ -17,11 +17,7 @@ class command():
return _('disables speech until next keypress')
def run(self):
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']['outputManager'].interruptOutput()
self.env['runtime']['outputManager'].tempDisableSpeech()
def setCallback(self, callback):
pass