Update screenManager.py
This commit is contained in:
parent
a3b0754d57
commit
e08895f265
@ -206,7 +206,6 @@ class screenManager():
|
|||||||
ignoreScreens.extend(fixIgnoreScreens.split(','))
|
ignoreScreens.extend(fixIgnoreScreens.split(','))
|
||||||
if self.env['runtime']['settingsManager'].getSettingAsBool('screen', 'autodetectSuspendingScreen'):
|
if self.env['runtime']['settingsManager'].getSettingAsBool('screen', 'autodetectSuspendingScreen'):
|
||||||
ignoreScreens.extend(self.env['screen']['autoIgnoreScreens'])
|
ignoreScreens.extend(self.env['screen']['autoIgnoreScreens'])
|
||||||
self.env['runtime']['debug'].writeDebugOut('screenManager:isSuspendingScreen ' + str(ignoreScreens) + ' '+ str(self.env['screen']['newTTY']),debug.debugLevel.INFO)
|
|
||||||
try:
|
try:
|
||||||
ignoreFileName = self.env['runtime']['settingsManager'].getSetting('screen', 'suspendingScreenFile')
|
ignoreFileName = self.env['runtime']['settingsManager'].getSetting('screen', 'suspendingScreenFile')
|
||||||
if ignoreFileName != '':
|
if ignoreFileName != '':
|
||||||
@ -215,6 +214,7 @@ class screenManager():
|
|||||||
ignoreScreens.extend(fp.read().replace('\n','').split(','))
|
ignoreScreens.extend(fp.read().replace('\n','').split(','))
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
self.env['runtime']['debug'].writeDebugOut('screenManager:isSuspendingScreen ' + str(ignoreScreens) + ' current:'+ str(self.env['screen']['newTTY']),debug.debugLevel.INFO)
|
||||||
return (screen in ignoreScreens)
|
return (screen in ignoreScreens)
|
||||||
|
|
||||||
def isScreenChange(self):
|
def isScreenChange(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user