diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-10-29 05:26:12 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-10-29 05:26:12 +0000 |
commit | 2d220afb24bd9812d5124814f670ec2a1ff5b0fe (patch) | |
tree | 5bbb7fbf32d1f3621467d116d10590fa7c5e7d50 /modules/ui.py | |
parent | e0cbf53f451f45ea73dafab654eb6596cbd67ec2 (diff) | |
download | stable-diffusion-webui-gfx803-2d220afb24bd9812d5124814f670ec2a1ff5b0fe.tar.gz stable-diffusion-webui-gfx803-2d220afb24bd9812d5124814f670ec2a1ff5b0fe.tar.bz2 stable-diffusion-webui-gfx803-2d220afb24bd9812d5124814f670ec2a1ff5b0fe.zip |
fix open folder button not working
Diffstat (limited to 'modules/ui.py')
-rw-r--r-- | modules/ui.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/ui.py b/modules/ui.py index 922a2163..20cc10cf 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -631,9 +631,9 @@ Requested path was: {f} buttons = parameters_copypaste.create_buttons(["img2img", "inpaint", "extras"])
button_id = "hidden_element" if shared.cmd_opts.hide_ui_dir_config else 'open_folder'
- open_folder = gr.Button(folder_symbol, elem_id=button_id)
+ open_folder_button = gr.Button(folder_symbol, elem_id=button_id)
- open_folder.click(
+ open_folder_button.click(
fn=lambda: open_folder(opts.outdir_samples or outdir),
inputs=[],
outputs=[],
|