feat(ui): load unet into secondary slot from networks panel

The refine toggle doubles as the slot selector on the UNet/DiT page:
with it active a card click sets sd_unet_secondary instead of sd_unet,
mirroring base/refiner selection on the model page.
This commit is contained in:
CalamitousFelicitousness
2026-07-11 15:39:45 +01:00
parent cf031b869c
commit 00d1b7cff6
3 changed files with 14 additions and 3 deletions
+7
View File
@@ -461,6 +461,13 @@ def create_quicksettings(interfaces):
inputs=[shared.settings_components["sd_unet"], dummy_component],
outputs=[shared.settings_components["sd_unet"], text_settings],
)
button_set_unet_secondary = gr.Button("Change UNet secondary", elem_id="change_unet_secondary", visible=False)
button_set_unet_secondary.click(
fn=lambda value, _: run_settings_single(value, key="sd_unet_secondary"),
_js="consumeDesiredUNetName",
inputs=[shared.settings_components["sd_unet_secondary"], dummy_component],
outputs=[shared.settings_components["sd_unet_secondary"], text_settings],
)
def reference_submit(model):
if '@' not in model: # diffusers