When a SwitchableJSRule has been switched off and I change something in my script so that it restarts, then after recreation of the rules the switch item would correctly be in OFF state given its historical state, but the rule it represents would still be enabled. Which basically means whenever your script restarts, all previously disabled rules would get enabled, without noticing...
When a
SwitchableJSRule
has been switched off and I change something in my script so that it restarts, then after recreation of the rules the switch item would correctly be inOFF
state given its historical state, but the rule it represents would still be enabled. Which basically means whenever your script restarts, all previously disabled rules would get enabled, without noticing...This should fix it, tested locally.