mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-09-21 03:01:27 -03:00
fix(settings): restore the Other Models master toggle state on load
updateOtherModelsControls() synced the sub-type checkboxes and default-root selects but never set the master toggle's checked state, and the setting_toggle macro renders no checked attribute, so after a page refresh the toggle always appeared off regardless of the saved setting.
This commit is contained in:
@@ -2432,6 +2432,11 @@ export class SettingsManager {
|
||||
|| ['vae', 'upscaler', 'text_encoder']
|
||||
);
|
||||
|
||||
const masterToggle = document.getElementById('enableOtherModels');
|
||||
if (masterToggle) {
|
||||
masterToggle.checked = enableOtherModels;
|
||||
}
|
||||
|
||||
document.querySelectorAll('[data-other-subtype-toggle]').forEach((input) => {
|
||||
input.checked = enabledSubTypes.has(input.value);
|
||||
input.disabled = !enableOtherModels;
|
||||
|
||||
Reference in New Issue
Block a user