mirror of
https://git.deluge-torrent.org/deluge
synced 2025-10-03 07:38:38 +00:00
pause torrents during import
This commit is contained in:
parent
63bd654c86
commit
7be512656c
1 changed files with 5 additions and 1 deletions
|
@ -51,7 +51,6 @@ class BlocklistImport:
|
||||||
self.core = core
|
self.core = core
|
||||||
self.interface = interface
|
self.interface = interface
|
||||||
self.cancelled = False
|
self.cancelled = False
|
||||||
|
|
||||||
self.gtkconf = GTKConfig(self)
|
self.gtkconf = GTKConfig(self)
|
||||||
self.gtkprog = GTKProgress(self)
|
self.gtkprog = GTKProgress(self)
|
||||||
self.nimported = 0
|
self.nimported = 0
|
||||||
|
@ -100,6 +99,9 @@ class BlocklistImport:
|
||||||
self.gtkprog.stop()
|
self.gtkprog.stop()
|
||||||
return
|
return
|
||||||
|
|
||||||
|
print "Pausing all torrents ..."
|
||||||
|
self.core.pause_all()
|
||||||
|
|
||||||
print "Starting import"
|
print "Starting import"
|
||||||
ips = reader.next()
|
ips = reader.next()
|
||||||
curr = 0
|
curr = 0
|
||||||
|
@ -127,6 +129,8 @@ class BlocklistImport:
|
||||||
|
|
||||||
self.gtkprog.stop()
|
self.gtkprog.stop()
|
||||||
self.cancelled = False
|
self.cancelled = False
|
||||||
|
print "Resuming all torrents ..."
|
||||||
|
self.core.resume_all()
|
||||||
|
|
||||||
def configure(self, window):
|
def configure(self, window):
|
||||||
self.gtkconf.start(self.config.get('listtype'),
|
self.gtkconf.start(self.config.get('listtype'),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue