This commit is contained in:
k2s 2024-09-12 16:58:41 +08:00 committed by GitHub
commit 95aca5d41c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -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):