Skip to content

Commit 80e5efa

Browse files
committed
Show breaking rules with a clockwise unicode arrow
1 parent aa3d650 commit 80e5efa

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/chrome/content/code/FennecUI.jsm

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,11 @@ var popupInfo = {
107107
this.ruleStatus.push(false);
108108
this.rules.push(this.alist.inactive[rule]);
109109
} else if (this.alist.breaking.hasOwnProperty(rule)) {
110-
// breaking rules are unchecked and untoggleable
111-
this.ruleItems.push({ label: rule, disabled: true });
112-
this.ruleStatus.push(false);
110+
// breaking rules are get a unicode clockwise arrow next to them
111+
var ruleLabel = "\u21B7"+rule;
112+
var isSelected = this.alist.breaking[rule].active;
113+
this.ruleItems.push({ label: ruleLabel, selected: isSelected });
114+
this.ruleStatus.push(isSelected);
113115
this.rules.push(this.alist.breaking[rule]);
114116
}
115117
}

0 commit comments

Comments
 (0)