tray: always pick the lowest battery, if the user hasn't already

This commit is contained in:
Daniel Pavel 2013-08-08 19:23:42 +02:00
parent 6a66370ffe
commit 5af1719384
1 changed files with 1 additions and 1 deletions

View File

@ -511,7 +511,7 @@ def update(device=None):
menu_items[no_receivers_index + 1].set_visible(not _devices_info)
global _picked_device
if not _picked_device and device is not None and device.kind is not None:
if (not _picked_device or _last_scroll == 0) and device is not None and device.kind is not None:
# if it's just a receiver update, it's unlikely the picked device would change
_picked_device = _pick_device_with_lowest_battery()