From b6853c7cdaed73b9a434b29db0f7eae8f20d33f7 Mon Sep 17 00:00:00 2001 From: chrys87 Date: Fri, 18 May 2018 11:13:47 +0200 Subject: [PATCH] Update fenrirManager.py --- src/fenrirscreenreader/core/fenrirManager.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/fenrirscreenreader/core/fenrirManager.py b/src/fenrirscreenreader/core/fenrirManager.py index bbcbd670..4f5a6c21 100644 --- a/src/fenrirscreenreader/core/fenrirManager.py +++ b/src/fenrirscreenreader/core/fenrirManager.py @@ -166,7 +166,10 @@ class fenrirManager(): #print('handleScreenUpdate:',time.time() - startTime) def handlePlugInputDevice(self, event): - self.env['runtime']['inputManager'].updateInputDevices(event) + if event['Data']: + self.env['runtime']['inputManager'].updateInputDevices(event['Data']) + else: + self.env['runtime']['inputManager'].updateInputDevices() self.environment['runtime']['commandManager'].executeDefaultTrigger('onPlugInputDevice', force=True) def handleHeartBeat(self, event):