Fix display of speeds in the systemtray tooltip.
This commit is contained in:
parent
c8508c8d15
commit
44c82db9a8
|
@ -127,8 +127,9 @@ class SystemTray(component.Component):
|
||||||
|
|
||||||
msg = '%s\n%s: %s (%s)\n%s: %s (%s)' % (\
|
msg = '%s\n%s: %s (%s)\n%s: %s (%s)' % (\
|
||||||
_("Deluge Bittorrent Client"), _("Down Speed"), \
|
_("Deluge Bittorrent Client"), _("Down Speed"), \
|
||||||
client.get_download_rate(), max_download_speed, _("Up Speed"), \
|
deluge.common.fspeed(client.get_download_rate()),
|
||||||
client.get_upload_rate(), max_upload_speed)
|
max_download_speed, _("Up Speed"), \
|
||||||
|
deluge.common.fspeed(client.get_upload_rate()), max_upload_speed)
|
||||||
|
|
||||||
# Set the tooltip
|
# Set the tooltip
|
||||||
self.tray.set_tooltip(msg)
|
self.tray.set_tooltip(msg)
|
||||||
|
|
Loading…
Reference in New Issue