mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-04 15:38:43 +00:00
fix removing filters that no longer exist
add a filtercreate event
This commit is contained in:
parent
62158d7861
commit
1825ce09fb
1 changed files with 4 additions and 1 deletions
|
@ -109,6 +109,7 @@
|
||||||
|
|
||||||
this.doLayout();
|
this.doLayout();
|
||||||
this.panels[filter] = panel;
|
this.panels[filter] = panel;
|
||||||
|
this.fireEvent('filtercreate', this, panel);
|
||||||
},
|
},
|
||||||
|
|
||||||
getFilters: function() {
|
getFilters: function() {
|
||||||
|
@ -164,7 +165,9 @@
|
||||||
Ext.each(Ext.keys(this.panels), function(filter) {
|
Ext.each(Ext.keys(this.panels), function(filter) {
|
||||||
if (Ext.keys(filters).indexOf(filter) == -1) {
|
if (Ext.keys(filters).indexOf(filter) == -1) {
|
||||||
// We need to remove the panel
|
// We need to remove the panel
|
||||||
this.panels[filter]
|
this.remove(this.panels[filter]);
|
||||||
|
this.doLayout();
|
||||||
|
delete this.panels[filter];
|
||||||
}
|
}
|
||||||
}, this);
|
}, this);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue