mirror of
https://github.com/searxng/searxng.git
synced 2024-12-01 15:11:03 +00:00
[fix] use defaults of engines protected with tokens on preference save
This commit is contained in:
parent
599d882d0a
commit
ba89a6a30f
1 changed files with 2 additions and 1 deletions
|
@ -230,7 +230,8 @@ class BooleanChoices:
|
||||||
|
|
||||||
disabled = self.transform_form_items(items)
|
disabled = self.transform_form_items(items)
|
||||||
for setting in self.choices:
|
for setting in self.choices:
|
||||||
self.choices[setting] = setting not in disabled
|
if setting in disabled:
|
||||||
|
self.choices[setting] = False
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def enabled(self):
|
def enabled(self):
|
||||||
|
|
Loading…
Reference in a new issue