aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ui_common.py
diff options
context:
space:
mode:
authorunknown <mcgpapu@gmail.com>2023-01-30 11:12:31 +0000
committerunknown <mcgpapu@gmail.com>2023-01-30 11:12:31 +0000
commit21766a0898fd9cc344c5d100396280fa8b0c4e74 (patch)
tree2a365bb6bc60c9916004e67c04f3816880366edf /modules/ui_common.py
parente79b7db4b47a33889551b9266ee3277879d4f560 (diff)
parentaa4688eb8345de583070ca9ddb4c6f585f06762b (diff)
downloadstable-diffusion-webui-gfx803-21766a0898fd9cc344c5d100396280fa8b0c4e74.tar.gz
stable-diffusion-webui-gfx803-21766a0898fd9cc344c5d100396280fa8b0c4e74.tar.bz2
stable-diffusion-webui-gfx803-21766a0898fd9cc344c5d100396280fa8b0c4e74.zip
Merge branch 'master' of github.com:AUTOMATIC1111/stable-diffusion-webui into gamepad
Diffstat (limited to 'modules/ui_common.py')
-rw-r--r--modules/ui_common.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/ui_common.py b/modules/ui_common.py
index 9405ac1f..fd047f31 100644
--- a/modules/ui_common.py
+++ b/modules/ui_common.py
@@ -198,5 +198,9 @@ Requested path was: {f}
html_info = gr.HTML(elem_id=f'html_info_{tabname}')
html_log = gr.HTML(elem_id=f'html_log_{tabname}')
- parameters_copypaste.bind_buttons(buttons, result_gallery, "txt2img" if tabname == "txt2img" else None)
+ for paste_tabname, paste_button in buttons.items():
+ parameters_copypaste.register_paste_params_button(parameters_copypaste.ParamBinding(
+ paste_button=paste_button, tabname=paste_tabname, source_tabname="txt2img" if tabname == "txt2img" else None, source_image_component=result_gallery
+ ))
+
return result_gallery, generation_info if tabname != "extras" else html_info_x, html_info, html_log