This commit is contained in:
chrys 2017-01-16 23:12:27 +01:00
parent 56e19eacb9
commit 15d3fffeac
2 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,6 @@ class screenManager():
self.env = environment self.env = environment
self.env['runtime']['settingsManager'].loadDriver(\ self.env['runtime']['settingsManager'].loadDriver(\
self.env['runtime']['settingsManager'].getSetting('screen', 'driver'), 'screenDriver') self.env['runtime']['settingsManager'].getSetting('screen', 'driver'), 'screenDriver')
if self.env['runtime']['settingsManager'].getSettingAsBool('screen', 'autodetectSuspendingScreen'):
self.updateAutoIgnoreScreens() self.updateAutoIgnoreScreens()
def shutdown(self): def shutdown(self):
@ -41,6 +40,7 @@ class screenManager():
self.env['runtime']['settingsManager'].getSetting('screen', 'suspendingScreen').split(',')) or self.env['runtime']['settingsManager'].getSetting('screen', 'suspendingScreen').split(',')) or
(screen in self.autoIgnoreScreens)) (screen in self.autoIgnoreScreens))
def updateAutoIgnoreScreens(self): def updateAutoIgnoreScreens(self):
if self.env['runtime']['settingsManager'].getSettingAsBool('screen', 'autodetectSuspendingScreen'):
self.autoIgnoreScreens = self.env['runtime']['screenDriver'].getIgnoreScreens() self.autoIgnoreScreens = self.env['runtime']['screenDriver'].getIgnoreScreens()
def isScreenChange(self): def isScreenChange(self):
if not self.env['screenData']['oldTTY']: if not self.env['screenData']['oldTTY']: