diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-01-29 21:25:30 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-01-29 21:25:30 +0000 |
commit | 938578e8a94883aa3c0075cf47eea64f66119541 (patch) | |
tree | bb370e79a6805f60ab41fb3cc2f0de6fc1750515 /modules/ui_common.py | |
parent | 00dab8f10defbbda579a1bc89c8d4e972c58a20d (diff) | |
download | stable-diffusion-webui-gfx803-938578e8a94883aa3c0075cf47eea64f66119541.tar.gz stable-diffusion-webui-gfx803-938578e8a94883aa3c0075cf47eea64f66119541.tar.bz2 stable-diffusion-webui-gfx803-938578e8a94883aa3c0075cf47eea64f66119541.zip |
make it so that setting options in pasted infotext (like Clip Skip and ENSD) do not get applied directly and instead are added as temporary overrides
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
|