Commit 1030ab0d authored by pythongosssss's avatar pythongosssss
Browse files

Reload setting value

parent db16932b
...@@ -225,6 +225,7 @@ class ComfySettingsDialog extends ComfyDialog { ...@@ -225,6 +225,7 @@ class ComfySettingsDialog extends ComfyDialog {
}; };
let element; let element;
value = this.getSettingValue(id, defaultValue);
if (typeof type === "function") { if (typeof type === "function") {
element = type(name, setter, value, attrs); element = type(name, setter, value, attrs);
...@@ -418,7 +419,7 @@ export class ComfyUI { ...@@ -418,7 +419,7 @@ export class ComfyUI {
type: "boolean", type: "boolean",
defaultValue: true, defaultValue: true,
}); });
const fileInput = $el("input", { const fileInput = $el("input", {
type: "file", type: "file",
accept: ".json,image/png", accept: ".json,image/png",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment