From 143aa202e6567c134b4148bbf12735dcf4285680 Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Tue, 22 Jul 2025 13:21:29 -0400 Subject: [PATCH] fix modernui txt2img sampler Signed-off-by: Vladimir Mandic --- extensions-builtin/sdnext-modernui | 2 +- modules/ui_sections.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions-builtin/sdnext-modernui b/extensions-builtin/sdnext-modernui index f3062d8da..fc7ea719e 160000 --- a/extensions-builtin/sdnext-modernui +++ b/extensions-builtin/sdnext-modernui @@ -1 +1 @@ -Subproject commit f3062d8da8b6ed8a1dbd3f1925d1bb8cf32442e2 +Subproject commit fc7ea719eedb560fe421174d760add4fed767872 diff --git a/modules/ui_sections.py b/modules/ui_sections.py index d4028bb1d..8ec1f619e 100644 --- a/modules/ui_sections.py +++ b/modules/ui_sections.py @@ -204,7 +204,7 @@ def create_sampler_and_steps_selection(choices, tabname, default_steps:int=20): if choices is None: sd_samplers.set_samplers() choices = [x for x in sd_samplers.samplers if not x.name == 'Same as primary'] - with gr.Row(elem_classes=['flex-break']): + with gr.Row(elem_id=f"{tabname}_sampler_row", elem_classes=['flex-break']): steps = gr.Slider(minimum=1, maximum=100, step=1, label="Steps", elem_id=f"{tabname}_steps", value=default_steps) sampler_index = gr.Dropdown(label='Sampling method', elem_id=f"{tabname}_sampling", choices=[x.name for x in choices], value='Default', type="index") return steps, sampler_index