aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ui_common.py
diff options
context:
space:
mode:
authorInvincibleDude <81354513+InvincibleDude@users.noreply.github.com>2023-01-30 12:35:13 +0000
committerGitHub <noreply@github.com>2023-01-30 12:35:13 +0000
commit3ec2eb8bf12ae629c292ed0e96f199669040c5de (patch)
treefb46cb76c06f4c6a5ad4ad2ce8cd3a4577525be5 /modules/ui_common.py
parent0d834b9394bb1a9dbcbdc02a3d4d24d1e6511073 (diff)
parentee9fdf7f62984dc30770fb1a73e68736b319746f (diff)
downloadstable-diffusion-webui-gfx803-3ec2eb8bf12ae629c292ed0e96f199669040c5de.tar.gz
stable-diffusion-webui-gfx803-3ec2eb8bf12ae629c292ed0e96f199669040c5de.tar.bz2
stable-diffusion-webui-gfx803-3ec2eb8bf12ae629c292ed0e96f199669040c5de.zip
Merge branch 'master' into improved-hr-conflict-test
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