mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-08 01:18:39 +00:00
unlimited max connections show as unlimited in status bar, not -1
This commit is contained in:
parent
3ef9e9a3c6
commit
3603445992
1 changed files with 4 additions and 1 deletions
|
@ -837,6 +837,9 @@ class DelugeGTK:
|
||||||
# Update Statusbar and Tray Tips
|
# Update Statusbar and Tray Tips
|
||||||
core_state = self.manager.get_state()
|
core_state = self.manager.get_state()
|
||||||
connections = core_state['num_peers']
|
connections = core_state['num_peers']
|
||||||
|
if (int(self.config.get("max_connections")) == -1):
|
||||||
|
max_connections = _("Unlimited")
|
||||||
|
else:
|
||||||
max_connections = int(self.config.get("max_connections"))
|
max_connections = int(self.config.get("max_connections"))
|
||||||
dlrate = common.frate(core_state['download_rate'])
|
dlrate = common.frate(core_state['download_rate'])
|
||||||
ulrate = common.frate(core_state['upload_rate'])
|
ulrate = common.frate(core_state['upload_rate'])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue