Restore backuped preference correctly
This commit is contained in:
parent
6dd37567c1
commit
97e1ae2eb9
@ -225,7 +225,7 @@ var TreeStyleTabUtils = {
|
|||||||
{
|
{
|
||||||
prefs.clearPref('browser.tabs.insertRelatedAfterCurrent');
|
prefs.clearPref('browser.tabs.insertRelatedAfterCurrent');
|
||||||
let backupValue = prefs.getPref('browser.tabs.insertRelatedAfterCurrent.backup');
|
let backupValue = prefs.getPref('browser.tabs.insertRelatedAfterCurrent.backup');
|
||||||
if (backupValue === null)
|
if (backupValue !== null)
|
||||||
prefs.setPref('browser.tabs.insertRelatedAfterCurrent', backupValue);
|
prefs.setPref('browser.tabs.insertRelatedAfterCurrent', backupValue);
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user