Commit 2d220afb authored by AUTOMATIC's avatar AUTOMATIC

fix open folder button not working

parent e0cbf53f
......@@ -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=[],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment