mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
Re-add "Max Connections per Second" setting
This commit is contained in:
parent
16ba61dbf5
commit
1458db6b03
4 changed files with 7 additions and 6 deletions
|
@ -7,9 +7,11 @@ Deluge 1.0.3 (18 October 2008)
|
|||
would cause the torrent to be rechecked on every startup.
|
||||
* Fix ip filtering
|
||||
|
||||
GtkUI:
|
||||
* Re-add the "Max Connections Per Second" option with a default setting of 20
|
||||
|
||||
WebUI:
|
||||
* Fix White template for Opera
|
||||
* Remove max connections per second from config dialog.
|
||||
|
||||
Misc:
|
||||
* Deluge will now use a system libtorrent library if available.
|
||||
|
|
|
@ -838,10 +838,7 @@ class Core(
|
|||
self.session.set_max_half_open_connections(value)
|
||||
|
||||
def _on_set_max_connections_per_second(self, key, value):
|
||||
#self.settings.connection_speed = value
|
||||
# We are hard-coding this value to 20 due to issues with having it
|
||||
# unlimited by default.
|
||||
self.settings.connection_speed = 20
|
||||
self.settings.connection_speed = value
|
||||
self.session.set_settings(self.settings)
|
||||
|
||||
def _on_ignore_limits_on_local_network(self, key, value):
|
||||
|
|
|
@ -1306,6 +1306,7 @@ Disabled</property>
|
|||
</child>
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label58">
|
||||
<property name="visible">True</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="label" translatable="yes">Maximum Connection Attempts per Second:</property>
|
||||
</widget>
|
||||
|
@ -1333,6 +1334,7 @@ Disabled</property>
|
|||
</child>
|
||||
<child>
|
||||
<widget class="GtkSpinButton" id="spin_max_connections_per_second">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="xalign">1</property>
|
||||
<property name="adjustment">-1 -1 9999 1 10 10</property>
|
||||
|
|
|
@ -105,7 +105,7 @@ class BandwithGlobal(config_forms.CfgForm):
|
|||
max_upload_slots_global = forms.DelugeInt(_("Maximum Upload Slots"))
|
||||
|
||||
max_half_open_connections = forms.DelugeInt(_("Maximum Half-Open Connections"))
|
||||
#max_connections_per_second = forms.DelugeInt(_("Maximum Connection Attempts per Second"))
|
||||
max_connections_per_second = forms.DelugeInt(_("Maximum Connection Attempts per Second"))
|
||||
ignore_limits_on_local_network = forms.CheckBox("Ignore limits on local network")
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue