mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-06 02:30:30 -08:00
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:
parent
59a21a67d2
commit
4dd898b8c1
7 changed files with 33 additions and 31 deletions
|
|
@ -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]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue