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

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 = [];