deal with windows systray limitation

This commit is contained in:
Marcos Pinto 2007-09-27 01:25:18 +00:00
parent 2738bb2835
commit c1d3fbc3f3
1 changed files with 6 additions and 3 deletions

View File

@ -1110,9 +1110,12 @@ window, please enter your password"))
dht_peers = str(dht_peers) dht_peers = str(dht_peers)
self.statusbar_temp_msg = self.statusbar_temp_msg + \ self.statusbar_temp_msg = self.statusbar_temp_msg + \
' [' + _("DHT") + ': %s]'%(dht_peers) ' [' + _("DHT") + ': %s]'%(dht_peers)
# windows cant display more than 64 characters in systray tooltip
msg = '%s\n%s: %s (%s)\n%s: %s (%s)%s' % ( if common.windows_check():
_("Deluge Bittorrent Client"), _("Down Speed"), dlspeed, 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) dlspeed_max, _("Up Speed"), ulspeed, ulspeed_max, plugin_messages)
self.tray_icon.set_tooltip(msg) self.tray_icon.set_tooltip(msg)