mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-13 06:52:42 +08:00
don't try to rehide defaultInput widget
This commit is contained in:
parent
27428d2cb7
commit
c8590fbe09
@ -158,10 +158,10 @@ app.registerExtension({
|
|||||||
|
|
||||||
if (this.inputs) {
|
if (this.inputs) {
|
||||||
for (const input of this.inputs) {
|
for (const input of this.inputs) {
|
||||||
if (input.widget && !input.widget.config[1]?.forceInput && !input.widget.config[1]?.defaultInput) {
|
if (input.widget && !input.widget.config[1]?.forceInput) {
|
||||||
const w = this.widgets.find((w) => w.name === input.widget.name);
|
const w = this.widgets.find((w) => w.name === input.widget.name);
|
||||||
if (w) {
|
if (w) {
|
||||||
hideWidget(this, w);
|
if (!input.widget.config[1]?.defaultInput) hideWidget(this, w);
|
||||||
} else {
|
} else {
|
||||||
convertToWidget(this, input)
|
convertToWidget(this, input)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user