do not mess with components' visibility for scripts; instead create group components and show/hide those; this will break scripts that create invisible components and rely on UI but the earlier i make this change the better

This commit is contained in:
AUTOMATIC
2022-11-04 08:38:11 +03:00
parent 59a21a67d2
commit 4dd898b8c1
7 changed files with 33 additions and 31 deletions

View File

@@ -14,7 +14,7 @@ class Script(scripts.Script):
return cmd_opts.allow_code
def ui(self, is_img2img):
code = gr.Textbox(label="Python code", visible=False, lines=1)
code = gr.Textbox(label="Python code", lines=1)
return [code]