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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user