diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-05-08 09:17:36 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-05-08 09:17:36 +0000 |
commit | 18fb2162a44ae06eaff302845abb880f27bcc975 (patch) | |
tree | ec3ba5475a6b16e75009b8c5e972c781891c6f66 | |
parent | ec0da07236d286f37c86f9cd92642e24381dd6a5 (diff) | |
download | stable-diffusion-webui-gfx803-18fb2162a44ae06eaff302845abb880f27bcc975.tar.gz stable-diffusion-webui-gfx803-18fb2162a44ae06eaff302845abb880f27bcc975.tar.bz2 stable-diffusion-webui-gfx803-18fb2162a44ae06eaff302845abb880f27bcc975.zip |
disable useless progress display when pasting infotext using the blur button
-rw-r--r-- | modules/generation_parameters_copypaste.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/generation_parameters_copypaste.py b/modules/generation_parameters_copypaste.py index 99f1a0d3..6cc8d13b 100644 --- a/modules/generation_parameters_copypaste.py +++ b/modules/generation_parameters_copypaste.py @@ -129,6 +129,7 @@ def connect_paste_params_buttons(): _js=jsfunc,
inputs=[binding.source_image_component],
outputs=[destination_image_component, destination_width_component, destination_height_component] if destination_width_component else [destination_image_component],
+ show_progress=False,
)
if binding.source_text_component is not None and fields is not None:
@@ -140,6 +141,7 @@ def connect_paste_params_buttons(): fn=lambda *x: x,
inputs=[field for field, name in paste_fields[binding.source_tabname]["fields"] if name in paste_field_names],
outputs=[field for field, name in fields if name in paste_field_names],
+ show_progress=False,
)
binding.paste_button.click(
@@ -147,6 +149,7 @@ def connect_paste_params_buttons(): _js=f"switch_to_{binding.tabname}",
inputs=None,
outputs=None,
+ show_progress=False,
)
@@ -409,12 +412,14 @@ def connect_paste(button, paste_fields, input_comp, override_settings_component, fn=paste_func,
inputs=[input_comp],
outputs=[x[0] for x in paste_fields],
+ show_progress=False,
)
button.click(
fn=None,
_js=f"recalculate_prompts_{tabname}",
inputs=[],
outputs=[],
+ show_progress=False,
)
|