mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-05 07:58:38 +00:00
Tweaks to per torrent preferences.
This commit is contained in:
parent
e85a521c43
commit
259e43b29a
2 changed files with 2 additions and 1 deletions
|
@ -813,6 +813,8 @@ class Manager:
|
||||||
unique_ID = deluge_core.add_torrent(torrent.filename,
|
unique_ID = deluge_core.add_torrent(torrent.filename,
|
||||||
torrent.save_dir,
|
torrent.save_dir,
|
||||||
torrent.compact)
|
torrent.compact)
|
||||||
|
# Apply per torrent prefs after torrent added to core
|
||||||
|
self.apply_prefs_per_torrent(unique_ID)
|
||||||
except DelugeError, e:
|
except DelugeError, e:
|
||||||
print "Error:", e
|
print "Error:", e
|
||||||
self.state.torrents.remove(torrent)
|
self.state.torrents.remove(torrent)
|
||||||
|
|
|
@ -1101,7 +1101,6 @@ 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