ui: allow tray icon to scroll whenever at least two devices
This commit is contained in:
parent
d115ade2ea
commit
6c02417037
|
@ -84,9 +84,7 @@ def _scroll(tray_icon, event, direction=None):
|
||||||
# ignore all other directions
|
# ignore all other directions
|
||||||
return
|
return
|
||||||
|
|
||||||
if len(_devices_info) < 4:
|
if sum(map(lambda i: i[1] is not None, _devices_info)) < 2: # don't bother even trying to scroll if less than two devices
|
||||||
# don't bother with scrolling when there's only one receiver
|
|
||||||
# with only one or two devices
|
|
||||||
return
|
return
|
||||||
|
|
||||||
# scroll events come way too fast (at least 5-6 at once)
|
# scroll events come way too fast (at least 5-6 at once)
|
||||||
|
|
Loading…
Reference in New Issue