Update screenManager.py
This commit is contained in:
parent
d7c65c32c9
commit
bd420570e2
@ -4,9 +4,11 @@ from utils import debug
|
|||||||
|
|
||||||
class screenManager():
|
class screenManager():
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
pass
|
|
||||||
def initialize(self, environment):
|
def initialize(self, environment):
|
||||||
return environment
|
self.autoIgnoreScreens = []
|
||||||
|
if environment['runtime']['settingsManager'].getSettingAsBool(environment,'screen', 'autodetectSuspendingScreen'):
|
||||||
|
self.autoIgnoreScreens = environment['runtime']['screenDriver'].getIgnoreScreens()
|
||||||
def shutdown(self, environment):
|
def shutdown(self, environment):
|
||||||
return environment
|
return environment
|
||||||
|
|
||||||
@ -18,6 +20,8 @@ class screenManager():
|
|||||||
return environment
|
return environment
|
||||||
|
|
||||||
def isSuspendingScreen(self, environment):
|
def isSuspendingScreen(self, environment):
|
||||||
return environment['runtime']['screenDriver'].getCurrScreen() in \
|
currScreen = environment['runtime']['screenDriver'].getCurrScreen()
|
||||||
environment['runtime']['settingsManager'].getSetting(environment,'screen', 'suspendingScreen').split(',')
|
return (currScreen in \
|
||||||
|
environment['runtime']['settingsManager'].getSetting(environment,'screen', 'suspendingScreen').split(',')) or
|
||||||
|
(currScreen in self.autoIgnoreScreens)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user