From b5d705e26324e1069e82dda149f7bf494da31142 Mon Sep 17 00:00:00 2001 From: EyeDeck Date: Sat, 24 Sep 2022 09:29:20 -0400 Subject: Disable 'batch img2img' when launched with --hide-ui-dir-config Prevent writing to arbitrary directories, as usual --- modules/shared.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/shared.py') diff --git a/modules/shared.py b/modules/shared.py index 7bad7a6d..1ce6eefc 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -116,7 +116,7 @@ def options_section(section_identifer, options_dict): return options_dict -hide_dirs = {"visible": False} if cmd_opts.hide_ui_dir_config else None +hide_dirs = {"visible": not cmd_opts.hide_ui_dir_config} options_templates = {} -- cgit v1.2.3