Fix #1961 : Missing 'All' filter option for Label plugin

This commit is contained in:
Calum Lind 2012-01-04 17:02:11 +00:00
parent 56f8e213e3
commit 39f648684e
2 changed files with 4 additions and 2 deletions

View File

@ -127,7 +127,9 @@ class Core(CorePluginBase):
pass
def init_filter_dict(self):
return dict( [(label, 0) for label in self.labels.keys()])
filter_dict = dict([(label, 0) for label in self.labels.keys()])
filter_dict['All'] = len(self.torrents.keys())
return filter_dict
## Plugin hooks ##
def post_torrent_add(self, torrent_id):

View File

@ -426,7 +426,7 @@ Deluge.plugins.LabelPlugin = Ext.extend(Deluge.Plugin, {
var lbltpl = '<div class="x-deluge-filter">' +
'<tpl if="filter">{filter}</tpl>' +
'<tpl if="!filter">no label</tpl>' +
'<tpl if="!filter">No Label</tpl>' +
' ({count})' +
'</div>';