From c1d3fbc3f3496212de8fc1eaf54ec55faa2784b5 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Thu, 27 Sep 2007 01:25:18 +0000 Subject: [PATCH] deal with windows systray limitation --- src/interface.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/interface.py b/src/interface.py index 51c68fcd7..81bd84e99 100644 --- a/src/interface.py +++ b/src/interface.py @@ -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)