add a small count of blocks in the status bar - tarka

This commit is contained in:
Marcos Pinto 2007-06-25 23:31:26 +00:00
parent 826057649c
commit 936a0fceab
1 changed files with 5 additions and 1 deletions

View File

@ -47,6 +47,7 @@ class BlocklistImport:
self.gtkconf = GTKConfig(self) self.gtkconf = GTKConfig(self)
self.gtkprog = GTKProgress(self) self.gtkprog = GTKProgress(self)
self.cancelled = False self.cancelled = False
self.nimported = 0
self.blockfile = deluge.common.CONFIG_DIR + "/blocklist.cache" self.blockfile = deluge.common.CONFIG_DIR + "/blocklist.cache"
@ -115,6 +116,7 @@ class BlocklistImport:
reader.close() reader.close()
self.nimported = curr
self.gtkprog.end_import() self.gtkprog.end_import()
print "Import complete" print "Import complete"
@ -138,4 +140,6 @@ class BlocklistImport:
self.core.reset_ip_filter() self.core.reset_ip_filter()
def update(self): def update(self):
pass msg = "[Blocklist: %s entries]" % self.nimported
self.core.statusbar_temp_msg += ' ' + msg