From dedef184c41daa388a6c0c08f8bd99a540c90f0d Mon Sep 17 00:00:00 2001 From: Alex Dedul Date: Thu, 12 Jul 2007 17:27:34 +0000 Subject: [PATCH] Add comment about usage of self.statusbar_temp_msg in DelugeGTK.update() and minor fix. --- src/interface.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/interface.py b/src/interface.py index 0b3b84193..f5958ac05 100644 --- a/src/interface.py +++ b/src/interface.py @@ -870,12 +870,13 @@ class DelugeGTK: ulspeed_max = _("Unlimited") else: 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)'%( _('Connections'), connections, max_connections, _('Down Speed'), 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'] if dht_peers == -1: dht_peers = '?'