mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-16 06:17:50 +00:00
Add comment about usage of self.statusbar_temp_msg in DelugeGTK.update() and
minor fix.
This commit is contained in:
parent
680c30e0de
commit
dedef184c4
@ -871,11 +871,12 @@ class DelugeGTK:
|
|||||||
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…
x
Reference in New Issue
Block a user