diff options
author | unknown <mcgpapu@gmail.com> | 2023-01-30 11:12:31 +0000 |
---|---|---|
committer | unknown <mcgpapu@gmail.com> | 2023-01-30 11:12:31 +0000 |
commit | 21766a0898fd9cc344c5d100396280fa8b0c4e74 (patch) | |
tree | 2a365bb6bc60c9916004e67c04f3816880366edf /modules/ui_common.py | |
parent | e79b7db4b47a33889551b9266ee3277879d4f560 (diff) | |
parent | aa4688eb8345de583070ca9ddb4c6f585f06762b (diff) | |
download | stable-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.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
|