settings: don't add non-existant key in raw xy processing
This commit is contained in:
parent
255c315ce1
commit
67c1d7e778
|
|
@ -1448,6 +1448,7 @@ class RawXYProcessing:
|
||||||
|
|
||||||
def start(self, key):
|
def start(self, key):
|
||||||
device_key = next((k for k in self.device.keys if k.key == key), None)
|
device_key = next((k for k in self.device.keys if k.key == key), None)
|
||||||
|
if device_key:
|
||||||
self.keys.append(device_key)
|
self.keys.append(device_key)
|
||||||
if not self.active:
|
if not self.active:
|
||||||
self.active = True
|
self.active = True
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue