mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-04-20 03:13:30 +00:00
Reload setting value
This commit is contained in:
parent
db16932be5
commit
1030ab0d8f
@ -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 {
|
|||||||
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",
|
||||||
|
Loading…
Reference in New Issue
Block a user