add checkbox black_out_nsfw

makes both enabling via config and checkbox possible, where config overrides the checkbox value
This commit is contained in:
Manuel Schmid
2023-12-16 22:55:25 +01:00
parent cdaaec3e71
commit e97008d4fb
3 changed files with 15 additions and 7 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ def worker():
if not isinstance(imgs, list):
imgs = [imgs]
if modules.config.default_black_out_nsfw:
if modules.config.default_black_out_nsfw or advanced_parameters.black_out_nsfw:
progressbar(async_task, progressbar_index, 'Checking for NSFW content ...')
imgs = censor_batch(imgs)