deal with windows systray limitation
This commit is contained in:
parent
2738bb2835
commit
c1d3fbc3f3
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue