fix barrier Toggle
This commit is contained in:
parent
96977c93a6
commit
bddb67e634
@ -16,8 +16,8 @@ class command():
|
||||
return _('enables or disables the barrier mode')
|
||||
|
||||
def run(self):
|
||||
self.env['runtime']['settingsManager'].setSetting('focus', 'barrier', str(not self.env['runtime']['settingsManager'].getSettingAsBool('focus', 'barrier')))
|
||||
if self.env['runtime']['settingsManager'].getSettingAsBool('focus', 'barrier'):
|
||||
self.env['runtime']['settingsManager'].setSetting('barrier', 'enabled', str(not self.env['runtime']['settingsManager'].getSettingAsBool('barrier', 'enabled')))
|
||||
if self.env['runtime']['settingsManager'].getSettingAsBool('barrier', 'enabled'):
|
||||
self.env['runtime']['outputManager'].presentText(_("barrier mode enabled"), soundIcon='', interrupt=True)
|
||||
else:
|
||||
self.env['runtime']['outputManager'].presentText(_("barrier mode disabled"), soundIcon='', interrupt=True)
|
||||
|
Loading…
Reference in New Issue
Block a user