mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-05 18:32:30 +01:00
Fix sticky imported list after removal
Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/1803
This commit is contained in:
parent
f55a53a890
commit
4efa6be96b
@ -146,17 +146,20 @@ import {
|
||||
};
|
||||
|
||||
µb.saveUserSettings = function() {
|
||||
// `externalLists` will be deprecated in some future, it is kept around
|
||||
// for forward compatibility purpose, and should reflect the content of
|
||||
// `importedLists`.
|
||||
//
|
||||
// https://github.com/uBlockOrigin/uBlock-issues/issues/1803
|
||||
// Do this before computing modified settings.
|
||||
this.userSettings.externalLists =
|
||||
this.userSettings.importedLists.join('\n');
|
||||
|
||||
const toSave = this.getModifiedSettings(
|
||||
this.userSettings,
|
||||
this.userSettingsDefault
|
||||
);
|
||||
|
||||
// `externalLists` will be deprecated in some future, it is kept around
|
||||
// for forward compatibility purpose, and should reflect the content of
|
||||
// `importedLists`.
|
||||
this.userSettings.externalLists =
|
||||
this.userSettings.importedLists.join('\n');
|
||||
|
||||
const toRemove = [];
|
||||
for ( const key in this.userSettings ) {
|
||||
if ( this.userSettings.hasOwnProperty(key) === false ) { continue; }
|
||||
|
Loading…
Reference in New Issue
Block a user