mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-20 21:05:41 +02:00
Fix startup when restoring preferences. Closes issue #291.
This commit is contained in:
1 parent
38e1ffa8a1
commit
f536b56ff3
3 files changed
+8
-5
No files matched your search
@@ -116,6 +116,9 @@ var Highlights = Module("Highlight", {
|
||||
|
||||
if (/^[[>+: ]/.test(args[1]))
|
||||
obj.selector = this.selector(obj.class) + args[1];
|
||||
else if (args[1])
|
||||
obj.selector = this.selector(args[1]);
|
||||
|
||||
if (old && old.value != old.defaultValue)
|
||||
obj.value = old.value;
|
||||
|
||||
|
||||
@@ -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