fix(widgets): persist LoRA entry selection and active tab across save/load

This commit is contained in:
Will Miao
2026-07-17 18:26:30 +08:00
parent 090e0297d4
commit 681cc13e90
5 changed files with 121 additions and 70 deletions

View File

@@ -438,6 +438,7 @@ export function mergeLoras(lorasText, lorasArr) {
active: lora.active !== undefined ? lora.active : true,
expanded: lora.expanded !== undefined ? lora.expanded : false,
clipStrength: lora.clipStrength !== undefined ? lora.clipStrength : parsedLoras[lora.name].clipStrength,
selected: !!lora.selected,
});
usedNames.add(lora.name);
}
@@ -451,6 +452,7 @@ export function mergeLoras(lorasText, lorasArr) {
strength: parsedLoras[name].strength,
active: true,
clipStrength: parsedLoras[name].clipStrength,
selected: false,
});
}
}