mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-04 15:38:43 +00:00
Set per torrent prefences on torrent add.
This commit is contained in:
parent
93101340e6
commit
aad2c464e4
2 changed files with 8 additions and 4 deletions
11
src/core.py
11
src/core.py
|
@ -911,10 +911,13 @@ class Manager:
|
||||||
# preferences were changed.
|
# preferences were changed.
|
||||||
for unique_ID in self.unique_IDs:
|
for unique_ID in self.unique_IDs:
|
||||||
self.prioritize_files(unique_ID, self.get_priorities(unique_ID))
|
self.prioritize_files(unique_ID, self.get_priorities(unique_ID))
|
||||||
self.set_max_connections_per_torrent(unique_ID,
|
self.apply_prefs_per_torrent(unique_ID)
|
||||||
self.get_pref("max_connections_per_torrent"))
|
|
||||||
self.set_max_upload_slots_per_torrent(unique_ID,
|
def apply_prefs_per_torrent(self, unique_ID):
|
||||||
self.get_pref("max_upload_slots_per_torrent"))
|
self.set_max_connections_per_torrent(unique_ID,
|
||||||
|
self.get_pref("max_connections_per_torrent"))
|
||||||
|
self.set_max_upload_slots_per_torrent(unique_ID,
|
||||||
|
self.get_pref("max_upload_slots_per_torrent"))
|
||||||
|
|
||||||
def set_DHT(self, start=False):
|
def set_DHT(self, start=False):
|
||||||
if start == True and self.dht_running != True:
|
if start == True and self.dht_running != True:
|
||||||
|
|
|
@ -1092,6 +1092,7 @@ class DelugeGTK:
|
||||||
files_dialog.get_priorities())
|
files_dialog.get_priorities())
|
||||||
if files_dialog.is_private_flag_checked():
|
if files_dialog.is_private_flag_checked():
|
||||||
self.manager.set_priv(unique_id, True)
|
self.manager.set_priv(unique_id, True)
|
||||||
|
self.manager.apply_prefs_per_torrent(unique_id)
|
||||||
else:
|
else:
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue