1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-01 05:25:45 +01:00

Fix slew of "Setting pref ... changed from its default value" messages on first startup.

This commit is contained in:
Kris Maglione
2010-12-30 13:12:18 -05:00
parent 47e80891a7
commit cfcf852e4a
3 changed files with 8 additions and 6 deletions

View File

@@ -132,7 +132,7 @@ var Prefs = Module("prefs", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference])
let defval = this._load(name, null, true);
let saved = this._load(this.SAVED + name);
if (saved == null && curval != defval || curval != saved) {
if (saved == null && curval != defval || saved != null && curval != saved) {
let msg = "Warning: setting preference " + name + ", but it's changed from its default value.";
if (message)
msg = template.linkifyHelp(msg + " " + message);