diff --git a/searx/preferences.py b/searx/preferences.py index b4a10899e..2baccfa77 100644 --- a/searx/preferences.py +++ b/searx/preferences.py @@ -260,7 +260,8 @@ class BooleanChoices: disabled = self.transform_form_items(items) for setting in self.choices: - self.choices[setting] = setting not in disabled + if setting in disabled: + self.choices[setting] = False @property def enabled(self):