Add comment about usage of self.statusbar_temp_msg in DelugeGTK.update() and
minor fix.
This commit is contained in:
parent
680c30e0de
commit
dedef184c4
|
@ -870,12 +870,13 @@ class DelugeGTK:
|
||||||
ulspeed_max = _("Unlimited")
|
ulspeed_max = _("Unlimited")
|
||||||
else:
|
else:
|
||||||
ulspeed_max = common.fspeed(self.config.get("max_upload_speed_bps"))
|
ulspeed_max = common.fspeed(self.config.get("max_upload_speed_bps"))
|
||||||
|
|
||||||
|
# Use self.statusbar_temp_msg instance var to allow plugins access it
|
||||||
self.statusbar_temp_msg = '%s: %s (%s) %s: %s (%s) %s: %s (%s)'%(
|
self.statusbar_temp_msg = '%s: %s (%s) %s: %s (%s) %s: %s (%s)'%(
|
||||||
_('Connections'), connections, max_connections, _('Down Speed'),
|
_('Connections'), connections, max_connections, _('Down Speed'),
|
||||||
dlspeed, dlspeed_max, _('Up Speed'), ulspeed, ulspeed_max)
|
dlspeed, dlspeed_max, _('Up Speed'), ulspeed, ulspeed_max)
|
||||||
|
|
||||||
if 'DHT_nodes' in core_state.keys():
|
if 'DHT_nodes' in core_state:
|
||||||
dht_peers = core_state['DHT_nodes']
|
dht_peers = core_state['DHT_nodes']
|
||||||
if dht_peers == -1:
|
if dht_peers == -1:
|
||||||
dht_peers = '?'
|
dht_peers = '?'
|
||||||
|
|
Loading…
Reference in New Issue