add missing setter for the weave enabled pref
authorDan Mills <thunder@mozilla.com>
Wed, 11 Feb 2009 11:24:16 -0800
changeset 45244 c306d5982ea8dfc1c28788aee64be05019fc93da
parent 45243 8ba7fe8664a814d3e90e65d966909a758cfb08c8
child 45245 422978b9cf06e02f8b3d3bf10d6971fb1ca84967
push idunknown
push userunknown
push dateunknown
add missing setter for the weave enabled pref
services/sync/modules/service.js
--- a/services/sync/modules/service.js
+++ b/services/sync/modules/service.js
@@ -218,16 +218,17 @@ WeaveSvc.prototype = {
 
   get cancelRequested() this._cancelRequested,
   set cancelRequested(value) { this._cancelRequested = value; },
 
   get keyGenEnabled() this._keyGenEnabled,
   set keyGenEnabled(value) { this._keyGenEnabled = value; },
 
   get enabled() Svc.Prefs.get("enabled"),
+  set enabled(value) Svc.Prefs.set("enabled", value),
 
   get schedule() {
     if (!this.enabled)
       return 0; // manual/off
     return Svc.Prefs.get("schedule");
   },
 
   get locked() this._locked,