From ba89a6a30f45022fb28e4210f8649dfd91427b33 Mon Sep 17 00:00:00 2001 From: Martin Minka Date: Sat, 15 Jan 2022 19:54:09 +0100 Subject: [PATCH] [fix] use defaults of engines protected with tokens on preference save --- searx/preferences.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/searx/preferences.py b/searx/preferences.py index 570d0901b..92907c996 100644 --- a/searx/preferences.py +++ b/searx/preferences.py @@ -230,7 +230,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):