This commit is contained in:
景大侠 2024-03-28 02:01:04 +08:00
parent f51c4ebed7
commit 3fd043bb9b
No known key found for this signature in database
GPG Key ID: DC179BBB336AB282

View File

@ -78,9 +78,12 @@ class ModuleManager(metaclass=Singleton):
if not setting:
return True
switch, value = setting
if getattr(settings, switch) and value is True:
option = getattr(settings, switch)
if not option:
return False
if option and value is True:
return True
if value in getattr(settings, switch):
if value in option:
return True
return False