fix indicator description when there are receivers but no devices

This commit is contained in:
Daniel Pavel 2013-06-08 21:10:17 +02:00
parent 2a6662472d
commit 5b68f9623e
1 changed files with 3 additions and 1 deletions

View File

@ -163,7 +163,9 @@ try:
else:
# there may be a receiver, but no peripherals
tray_icon_name = _icons.TRAY_OKAY if ind._devices_info else _icons.TRAY_INIT
description = '%s: no receivers found' % NAME
tooltip_lines = _generate_tooltip_lines(ind._devices_info)
description = '\n'.join(tooltip_lines).rstrip('\n')
# icon_file = _icons.icon_file(icon_name, _TRAY_ICON_SIZE)
ind.set_icon_full(tray_icon_name, description)