Fix #1961 : Missing 'All' filter option for Label plugin
This commit is contained in:
parent
a83fd1d597
commit
ee35fe1cad
|
@ -130,7 +130,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, from_state):
|
||||
|
|
|
@ -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>';
|
||||
|
||||
|
|
Loading…
Reference in New Issue