mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-03 23:23:27 +00:00
unlimited max connections show as unlimited in status bar, not -1
This commit is contained in:
parent
3ef9e9a3c6
commit
3603445992
@ -837,7 +837,10 @@ class DelugeGTK:
|
||||
# Update Statusbar and Tray Tips
|
||||
core_state = self.manager.get_state()
|
||||
connections = core_state['num_peers']
|
||||
max_connections = int(self.config.get("max_connections"))
|
||||
if (int(self.config.get("max_connections")) == -1):
|
||||
max_connections = _("Unlimited")
|
||||
else:
|
||||
max_connections = int(self.config.get("max_connections"))
|
||||
dlrate = common.frate(core_state['download_rate'])
|
||||
ulrate = common.frate(core_state['upload_rate'])
|
||||
if self.config.get("max_download_rate") < 0:
|
||||
|
Loading…
x
Reference in New Issue
Block a user