store the states without the zero values removed as this.states

This commit is contained in:
Damien Churchill 2010-04-28 15:23:22 +01:00
parent cbcd277d91
commit 59b7a175eb
1 changed files with 1 additions and 0 deletions

View File

@ -114,6 +114,7 @@ Deluge.FilterPanel = Ext.extend(Ext.Panel, {
* Update the states in the FilterPanel
*/
updateStates: function(states) {
this.states = states;
var show_zero = (this.show_zero == null) ? deluge.config.sidebar_show_zero : this.show_zero;
if (!show_zero) {
var newStates = [];