pause torrents during import

This commit is contained in:
Marcos Pinto 2007-08-26 07:24:11 +00:00
parent 63bd654c86
commit 7be512656c
1 changed files with 5 additions and 1 deletions

View File

@ -51,7 +51,6 @@ class BlocklistImport:
self.core = core
self.interface = interface
self.cancelled = False
self.gtkconf = GTKConfig(self)
self.gtkprog = GTKProgress(self)
self.nimported = 0
@ -100,6 +99,9 @@ class BlocklistImport:
self.gtkprog.stop()
return
print "Pausing all torrents ..."
self.core.pause_all()
print "Starting import"
ips = reader.next()
curr = 0
@ -127,6 +129,8 @@ class BlocklistImport:
self.gtkprog.stop()
self.cancelled = False
print "Resuming all torrents ..."
self.core.resume_all()
def configure(self, window):
self.gtkconf.start(self.config.get('listtype'),