From bddb67e634045917276028722660d75d99458344 Mon Sep 17 00:00:00 2001 From: chrys Date: Sat, 7 Jul 2018 16:26:41 +0200 Subject: [PATCH] fix barrier Toggle --- src/fenrirscreenreader/commands/commands/toggle_barrier.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fenrirscreenreader/commands/commands/toggle_barrier.py b/src/fenrirscreenreader/commands/commands/toggle_barrier.py index f8e814ab..fe5925d0 100644 --- a/src/fenrirscreenreader/commands/commands/toggle_barrier.py +++ b/src/fenrirscreenreader/commands/commands/toggle_barrier.py @@ -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)