fix lock_status on secondary split

This commit is contained in:
xs5871 2022-02-03 22:16:55 +00:00 committed by Josh Klar
parent 55a6636741
commit 3e3255ffea

View File

@ -37,9 +37,10 @@ class LockStatus(Extension):
return
def after_hid_send(self, sandbox):
report = self.hid.get_last_received_report()
if report[0] != self.report:
self.report = report[0]
if self.hid:
report = self.hid.get_last_received_report()
if report[0] != self.report:
self.report = report[0]
return
def on_powersave_enable(self, sandbox):