fix autoread Enable/disable command
This commit is contained in:
parent
c6562281da
commit
1720ab78e2
@ -16,8 +16,8 @@ class command():
|
|||||||
return 'enables or disables automatic reading of new text as it appears'
|
return 'enables or disables automatic reading of new text as it appears'
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
self.env['runtime']['settingsManager'].setSetting('speech', 'autoReadIncomming', str(not self.env['runtime']['settingsManager'].getSettingAsBool('speech', 'autoReadIncomming')))
|
self.env['runtime']['settingsManager'].setSetting('speech', 'autoReadIncoming', str(not self.env['runtime']['settingsManager'].getSettingAsBool('speech', 'autoReadIncoming')))
|
||||||
if self.env['runtime']['settingsManager'].getSettingAsBool('speech', 'autoReadIncomming'):
|
if self.env['runtime']['settingsManager'].getSettingAsBool('speech', 'autoReadIncoming'):
|
||||||
self.env['runtime']['outputManager'].presentText("autoread enabled", soundIcon='', interrupt=True)
|
self.env['runtime']['outputManager'].presentText("autoread enabled", soundIcon='', interrupt=True)
|
||||||
else:
|
else:
|
||||||
self.env['runtime']['outputManager'].presentText("autoread disabled", soundIcon='', interrupt=True)
|
self.env['runtime']['outputManager'].presentText("autoread disabled", soundIcon='', interrupt=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user