mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-30 07:45:45 +01:00
Fix startup when restoring preferences. Closes issue #291.
This commit is contained in:
@@ -27,11 +27,11 @@ var Prefs = Module("prefs", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference])
|
||||
if (this.branch instanceof Ci.nsIPrefBranch2)
|
||||
this.branch.QueryInterface(Ci.nsIPrefBranch2);
|
||||
|
||||
this.defaults = defaults ? this : this.constructor(branch, true);
|
||||
|
||||
if (!defaults)
|
||||
this.restore();
|
||||
|
||||
this.defaults = defaults ? this : this.constructor(branch, true);
|
||||
|
||||
this._observers = {};
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user