From 15d3fffeacd2a327b19c39b9b04f339b2f61fb91 Mon Sep 17 00:00:00 2001 From: chrys Date: Mon, 16 Jan 2017 23:12:27 +0100 Subject: [PATCH] typo --- src/fenrir/core/screenManager.py | 6 +++--- src/fenrir/fenrir.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/fenrir/core/screenManager.py b/src/fenrir/core/screenManager.py index 4147775e..6f980085 100644 --- a/src/fenrir/core/screenManager.py +++ b/src/fenrir/core/screenManager.py @@ -15,8 +15,7 @@ class screenManager(): self.env = environment self.env['runtime']['settingsManager'].loadDriver(\ self.env['runtime']['settingsManager'].getSetting('screen', 'driver'), 'screenDriver') - if self.env['runtime']['settingsManager'].getSettingAsBool('screen', 'autodetectSuspendingScreen'): - self.updateAutoIgnoreScreens() + self.updateAutoIgnoreScreens() def shutdown(self): self.env['runtime']['settingsManager'].shutdownDriver('screenDriver') @@ -41,7 +40,8 @@ class screenManager(): self.env['runtime']['settingsManager'].getSetting('screen', 'suspendingScreen').split(',')) or (screen in self.autoIgnoreScreens)) def updateAutoIgnoreScreens(self): - self.autoIgnoreScreens = self.env['runtime']['screenDriver'].getIgnoreScreens() + if self.env['runtime']['settingsManager'].getSettingAsBool('screen', 'autodetectSuspendingScreen'): + self.autoIgnoreScreens = self.env['runtime']['screenDriver'].getIgnoreScreens() def isScreenChange(self): if not self.env['screenData']['oldTTY']: return False diff --git a/src/fenrir/fenrir.py b/src/fenrir/fenrir.py index 0d3af5d1..f1383db6 100644 --- a/src/fenrir/fenrir.py +++ b/src/fenrir/fenrir.py @@ -58,7 +58,7 @@ class fenrir(): self.environment['runtime']['commandManager'].executeSwitchTrigger('onSwitchApplicationProfile', \ self.environment['runtime']['applicationManager'].getPrevApplication(), \ self.environment['runtime']['applicationManager'].getCurrentApplication()) - self.environment['runtime']['screenManager'].updateAutoIgnoreScreens() + self.environment['runtime']['screenManager'].updateAutoIgnoreScreens() if self.environment['runtime']['screenManager'].isScreenChange(): self.environment['runtime']['commandManager'].executeDefaultTrigger('onScreenChanged')