fix application detection, remove debugging print

This commit is contained in:
chrys 2016-10-02 23:27:29 +02:00
parent 90129d4161
commit bc5bc3d1ef

View File

@ -24,7 +24,7 @@ class screenManager():
def update(self, trigger = 'onUpdate'):
self.env['runtime']['screenDriver'].getCurrScreen()
if not self.isSuspendingScreen():
if trigger == 'onUpdate':
if trigger == 'onUpdate' or self.isScreenChange():
self.env['runtime']['screenDriver'].getCurrApplication()
self.env['runtime']['screenDriver'].update(trigger)
self.env['screenData']['lastScreenUpdate'] = time.time()