mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 19:44:52 +00:00
deal with windows systray limitation
This commit is contained in:
parent
2738bb2835
commit
c1d3fbc3f3
1 changed files with 6 additions and 3 deletions
|
@ -1110,9 +1110,12 @@ window, please enter your password"))
|
|||
dht_peers = str(dht_peers)
|
||||
self.statusbar_temp_msg = self.statusbar_temp_msg + \
|
||||
' [' + _("DHT") + ': %s]'%(dht_peers)
|
||||
|
||||
msg = '%s\n%s: %s (%s)\n%s: %s (%s)%s' % (
|
||||
_("Deluge Bittorrent Client"), _("Down Speed"), dlspeed,
|
||||
# windows cant display more than 64 characters in systray tooltip
|
||||
if common.windows_check():
|
||||
msg = _("Deluge Bittorrent Client")
|
||||
else:
|
||||
msg = '%s\n%s: %s (%s)\n%s: %s (%s)%s' % (\
|
||||
_("Deluge Bittorrent Client"), _("Down Speed"), dlspeed, \
|
||||
dlspeed_max, _("Up Speed"), ulspeed, ulspeed_max, plugin_messages)
|
||||
|
||||
self.tray_icon.set_tooltip(msg)
|
||||
|
|
Loading…
Add table
Reference in a new issue