Skip to content

Commit 8aa51f6

Browse files
committed
fix [Bug]: (Dev Branch) Placing "Dimensions" first in "ui_reorder_list" prevents start #14047
1 parent 5f36f6a commit 8aa51f6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

modules/ui.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -635,12 +635,6 @@ def copy_image(img):
635635
scale_by.release(**on_change_args)
636636
button_update_resize_to.click(**on_change_args)
637637

638-
# the code below is meant to update the resolution label after the image in the image selection UI has changed.
639-
# as it is now the event keeps firing continuously for inpaint edits, which ruins the page with constant requests.
640-
# I assume this must be a gradio bug and for now we'll just do it for non-inpaint inputs.
641-
for component in [init_img, sketch]:
642-
component.change(fn=lambda: None, _js="updateImg2imgResizeToTextAfterChangingImage", inputs=[], outputs=[], show_progress=False)
643-
644638
tab_scale_to.select(fn=lambda: 0, inputs=[], outputs=[selected_scale_tab])
645639
tab_scale_by.select(fn=lambda: 1, inputs=[], outputs=[selected_scale_tab])
646640

@@ -701,6 +695,12 @@ def copy_image(img):
701695
if category not in {"accordions"}:
702696
scripts.scripts_img2img.setup_ui_for_section(category)
703697

698+
# the code below is meant to update the resolution label after the image in the image selection UI has changed.
699+
# as it is now the event keeps firing continuously for inpaint edits, which ruins the page with constant requests.
700+
# I assume this must be a gradio bug and for now we'll just do it for non-inpaint inputs.
701+
for component in [init_img, sketch]:
702+
component.change(fn=lambda: None, _js="updateImg2imgResizeToTextAfterChangingImage", inputs=[], outputs=[], show_progress=False)
703+
704704
def select_img2img_tab(tab):
705705
return gr.update(visible=tab in [2, 3, 4]), gr.update(visible=tab == 3),
706706

0 commit comments

Comments
 (0)