ui: directly connected devices don't need to support connection notifications
This commit is contained in:
parent
62034758f0
commit
6c62f975d0
|
@ -84,7 +84,7 @@ class ReceiverListener(_listener.EventsListener):
|
||||||
if _log.isEnabledFor(_INFO):
|
if _log.isEnabledFor(_INFO):
|
||||||
_log.info('%s: notifications listener has started (%s)', self.receiver, self.receiver.handle)
|
_log.info('%s: notifications listener has started (%s)', self.receiver, self.receiver.handle)
|
||||||
notification_flags = self.receiver.enable_connection_notifications()
|
notification_flags = self.receiver.enable_connection_notifications()
|
||||||
assert notification_flags & _hidpp10.NOTIFICATION_FLAG.wireless, \
|
assert self.receiver.isDevice or (notification_flags & _hidpp10.NOTIFICATION_FLAG.wireless), \
|
||||||
'Receiver on %s does not support connection notifications, GUI will not show it' % self.receiver.path
|
'Receiver on %s does not support connection notifications, GUI will not show it' % self.receiver.path
|
||||||
self.receiver.status[_status.KEYS.NOTIFICATION_FLAGS] = notification_flags
|
self.receiver.status[_status.KEYS.NOTIFICATION_FLAGS] = notification_flags
|
||||||
self.receiver.notify_devices()
|
self.receiver.notify_devices()
|
||||||
|
|
Loading…
Reference in New Issue