aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-11-21 05:32:00 +0000
committerAUTOMATIC1111 <16777216c@gmail.com>2023-11-21 05:32:07 +0000
commit8aa51f682c17d85f4585b9471860224568d25e95 (patch)
tree9c3da55529522f6304c56ce50cac38ea6be0a8e9 /modules
parent5f36f6ab21228235021c2441a404f7d297ef6737 (diff)
downloadstable-diffusion-webui-gfx803-8aa51f682c17d85f4585b9471860224568d25e95.tar.gz
stable-diffusion-webui-gfx803-8aa51f682c17d85f4585b9471860224568d25e95.tar.bz2
stable-diffusion-webui-gfx803-8aa51f682c17d85f4585b9471860224568d25e95.zip
fix [Bug]: (Dev Branch) Placing "Dimensions" first in "ui_reorder_list" prevents start #14047
Diffstat (limited to 'modules')
-rw-r--r--modules/ui.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/ui.py b/modules/ui.py
index b82f3c5e..08e0ad77 100644
--- a/modules/ui.py
+++ b/modules/ui.py
@@ -635,12 +635,6 @@ def create_ui():
scale_by.release(**on_change_args)
button_update_resize_to.click(**on_change_args)
- # the code below is meant to update the resolution label after the image in the image selection UI has changed.
- # as it is now the event keeps firing continuously for inpaint edits, which ruins the page with constant requests.
- # I assume this must be a gradio bug and for now we'll just do it for non-inpaint inputs.
- for component in [init_img, sketch]:
- component.change(fn=lambda: None, _js="updateImg2imgResizeToTextAfterChangingImage", inputs=[], outputs=[], show_progress=False)
-
tab_scale_to.select(fn=lambda: 0, inputs=[], outputs=[selected_scale_tab])
tab_scale_by.select(fn=lambda: 1, inputs=[], outputs=[selected_scale_tab])
@@ -701,6 +695,12 @@ def create_ui():
if category not in {"accordions"}:
scripts.scripts_img2img.setup_ui_for_section(category)
+ # the code below is meant to update the resolution label after the image in the image selection UI has changed.
+ # as it is now the event keeps firing continuously for inpaint edits, which ruins the page with constant requests.
+ # I assume this must be a gradio bug and for now we'll just do it for non-inpaint inputs.
+ for component in [init_img, sketch]:
+ component.change(fn=lambda: None, _js="updateImg2imgResizeToTextAfterChangingImage", inputs=[], outputs=[], show_progress=False)
+
def select_img2img_tab(tab):
return gr.update(visible=tab in [2, 3, 4]), gr.update(visible=tab == 3),