diff --git a/searx/preferences.py b/searx/preferences.py index 18c3f08d8..47e3b3b0a 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):