Update fenrir.py
This commit is contained in:
parent
664a9cff0b
commit
f02a55f680
@ -50,12 +50,12 @@ class fenrir():
|
|||||||
print(e)
|
print(e)
|
||||||
self.environment['runtime']['debug'].writeDebugOut(str(e),debug.debugLevel.ERROR)
|
self.environment['runtime']['debug'].writeDebugOut(str(e),debug.debugLevel.ERROR)
|
||||||
|
|
||||||
if self.environment['screenData']['newApplication'] != self.environment['screenData']['oldApplication']:
|
if self.environment['runtime']['applicationManager'].isApplicationChange():
|
||||||
self.environment['runtime']['commandManager'].executeDefaultTrigger('onApplicationChange')
|
self.environment['runtime']['commandManager'].executeDefaultTrigger('onApplicationChange')
|
||||||
self.environment['runtime']['commandManager'].executeSwitchTrigger('onSwitchApplicationProfile', \
|
self.environment['runtime']['commandManager'].executeSwitchTrigger('onSwitchApplicationProfile', \
|
||||||
self.environment['screenData']['oldApplication'], self.environment['screenData']['newApplication'])
|
self.environment['screenData']['oldApplication'], self.environment['screenData']['newApplication'])
|
||||||
self.environment['runtime']['commandManager'].executeDefaultTrigger('onInput')
|
self.environment['runtime']['commandManager'].executeDefaultTrigger('onInput')
|
||||||
if self.environment['screenData']['newTTY'] == self.environment['screenData']['oldTTY']:
|
if self.environment['runtime']['screenManager'].isScreenChange():
|
||||||
self.environment['runtime']['commandManager'].executeDefaultTrigger('onScreenUpdate')
|
self.environment['runtime']['commandManager'].executeDefaultTrigger('onScreenUpdate')
|
||||||
else:
|
else:
|
||||||
self.environment['runtime']['commandManager'].executeDefaultTrigger('onScreenChanged')
|
self.environment['runtime']['commandManager'].executeDefaultTrigger('onScreenChanged')
|
||||||
@ -103,6 +103,9 @@ class fenrir():
|
|||||||
if self.environment['runtime']['reviewManager']:
|
if self.environment['runtime']['reviewManager']:
|
||||||
self.environment['runtime']['reviewManager'].shutdown()
|
self.environment['runtime']['reviewManager'].shutdown()
|
||||||
del self.environment['runtime']['reviewManager']
|
del self.environment['runtime']['reviewManager']
|
||||||
|
if self.environment['runtime']['applicationManager']:
|
||||||
|
self.environment['runtime']['applicationManager'].shutdown()
|
||||||
|
del self.environment['runtime']['applicationManager']
|
||||||
|
|
||||||
if self.environment['runtime']['debug']:
|
if self.environment['runtime']['debug']:
|
||||||
self.environment['runtime']['debug'].shutdown()
|
self.environment['runtime']['debug'].shutdown()
|
||||||
|
Loading…
Reference in New Issue
Block a user