fix lock_status on secondary split

This commit is contained in:
xs5871 authored and Josh Klar committed 2022-02-05 07:29:01 +00:00
1 parent 55a6636741
commit 3e3255ffea
1 file changed
+4 -3
+4 -3
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):