Merge pull request #437 from saneyuki/pref

Not setting '.override' pref when uninstall/diasble this addon
This commit is contained in:
YUKI "Piro" Hiroshi 2013-01-03 18:06:23 -08:00
commit 05dd8078b3

View File

@ -498,8 +498,6 @@ var TreeStyleTabBase = {
let pref = restorePrefs[i]; let pref = restorePrefs[i];
let backup = prefs.getPref(pref+'.backup'); let backup = prefs.getPref(pref+'.backup');
if (backup === null) continue; if (backup === null) continue;
// we have to set to ".override" pref, to avoid unexpectedly reset by the preference listener.
prefs.setPref(pref+'.override', backup);
// restore user preference. // restore user preference.
prefs.setPref(pref, backup); prefs.setPref(pref, backup);
// clear backup pref. // clear backup pref.