diff options
author | InvincibleDude <81354513+InvincibleDude@users.noreply.github.com> | 2023-01-30 12:35:13 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-30 12:35:13 +0000 |
commit | 3ec2eb8bf12ae629c292ed0e96f199669040c5de (patch) | |
tree | fb46cb76c06f4c6a5ad4ad2ce8cd3a4577525be5 /modules/ui_common.py | |
parent | 0d834b9394bb1a9dbcbdc02a3d4d24d1e6511073 (diff) | |
parent | ee9fdf7f62984dc30770fb1a73e68736b319746f (diff) | |
download | stable-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.py | 6 |
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
|