Skip to content

Commit 5ecf33e

Browse files
author
katmagic
committed
Actually toggle a rule's activation instead of just changing its setting.
1 parent a59a13c commit 5ecf33e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/chrome/content/preferences.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,12 @@ function https_prefs_init(doc) {
2828
return o_httpsprefs.getBoolPref(this.rules[row].name) ? "true" : "false";
2929
},
3030
setCellValue: function(row, col, val) { // toggle a rule's activation
31-
o_httpsprefs.setBoolPref( this.rules[row].name, (val == "true") );
31+
var rule = this.rules[row];
32+
var active = (val == "true");
33+
34+
o_httpsprefs.setBoolPref(rule.name, active);
35+
rule.active = active;
36+
3237
this.treebox.invalidateRow(row);
3338
},
3439
isEditable: function(row, col) {

0 commit comments

Comments
 (0)