ui: allow tray icon to scroll whenever at least two devices

This commit is contained in:
Peter F. Patel-Schneider 2022-03-17 13:32:01 -04:00
parent d115ade2ea
commit 6c02417037
1 changed files with 1 additions and 3 deletions

View File

@ -84,9 +84,7 @@ def _scroll(tray_icon, event, direction=None):
# ignore all other directions
return
if len(_devices_info) < 4:
# don't bother with scrolling when there's only one receiver
# with only one or two devices
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
return
# scroll events come way too fast (at least 5-6 at once)