chore: Refactor zen-settings.js to improve preference handling

This commit is contained in:
Mauro Balades
2024-08-20 18:00:23 +02:00
parent f78ad97710
commit 69a1e0f1b9

View File

@@ -96,7 +96,7 @@ var gZenMarketplaceManager = {
}
if (isNegation && os === this.currentOperatingSystem) {
delete preferences[key];
} else if (os && os !== this.currentOperatingSystem) {
} else if (os && os !== this.currentOperatingSystem && !isNegation) {
delete preferences[key];
} else {
// Change the key to contain only the rest of the preferences.