aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-10-09 08:59:41 +0000
committerAUTOMATIC <16777216c@gmail.com>2022-10-09 08:59:41 +0000
commitab4fe4f44c3d2675a351269fe2ff1ddeac557aa6 (patch)
treeaa0579b7ec572b0864e27637b98df79063f081dd
parentcbf6dad02d04d98e5a2d5e870777ab99b5796b2d (diff)
downloadstable-diffusion-webui-gfx803-ab4fe4f44c3d2675a351269fe2ff1ddeac557aa6.tar.gz
stable-diffusion-webui-gfx803-ab4fe4f44c3d2675a351269fe2ff1ddeac557aa6.tar.bz2
stable-diffusion-webui-gfx803-ab4fe4f44c3d2675a351269fe2ff1ddeac557aa6.zip
hide filenames for save button by default
-rw-r--r--modules/ui.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/ui.py b/modules/ui.py
index 8071b1cb..e1ab2665 100644
--- a/modules/ui.py
+++ b/modules/ui.py
@@ -162,7 +162,7 @@ def save_files(js_data, images, do_make_zip, index):
zip_file.writestr(filenames[i], f.read())
fullfns.insert(0, zip_filepath)
- return fullfns, '', '', plaintext_to_html(f"Saved: {filenames[0]}")
+ return gr.File.update(value=fullfns, visible=True), '', '', plaintext_to_html(f"Saved: {filenames[0]}")
def wrap_gradio_call(func, extra_outputs=None):
@@ -553,7 +553,7 @@ def create_ui(wrap_gradio_gpu_call):
do_make_zip = gr.Checkbox(label="Make Zip when Save?", value=False)
with gr.Row():
- download_files = gr.File(None, file_count="multiple", interactive=False, show_label=False)
+ download_files = gr.File(None, file_count="multiple", interactive=False, show_label=False, visible=False)
with gr.Group():
html_info = gr.HTML()
@@ -741,7 +741,7 @@ def create_ui(wrap_gradio_gpu_call):
do_make_zip = gr.Checkbox(label="Make Zip when Save?", value=False)
with gr.Row():
- download_files = gr.File(None, file_count="multiple", interactive=False, show_label=False)
+ download_files = gr.File(None, file_count="multiple", interactive=False, show_label=False, visible=False)
with gr.Group():
html_info = gr.HTML()