mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-21 15:48:12 +00:00
Fix adding torrent to session
This commit is contained in:
parent
a2b2ce2ca5
commit
dbcf1e622a
@ -328,7 +328,7 @@ class CreateTorrentDialog:
|
|||||||
httpseeds=httpseeds)
|
httpseeds=httpseeds)
|
||||||
self.glade.get_widget("progress_dialog").hide_all()
|
self.glade.get_widget("progress_dialog").hide_all()
|
||||||
if add_to_session:
|
if add_to_session:
|
||||||
client.add_torrent_files([target])
|
client.add_torrent_file([target])
|
||||||
|
|
||||||
def _on_create_torrent_progress(self, value, num_pieces):
|
def _on_create_torrent_progress(self, value, num_pieces):
|
||||||
percent = float(value)/float(num_pieces)
|
percent = float(value)/float(num_pieces)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user