mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-23 16:27:00 +08:00
Revert "don't try to rehide defaultInput widget"
This reverts commit c8590fbe09314dd60fd984f853d14f1dc5a2ae8a.
This commit is contained in:
parent
c8590fbe09
commit
849ac8b6be
@ -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) {
|
if (input.widget && !input.widget.config[1]?.forceInput && !input.widget.config[1]?.defaultInput) {
|
||||||
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) {
|
||||||
if (!input.widget.config[1]?.defaultInput) hideWidget(this, w);
|
hideWidget(this, w);
|
||||||
} else {
|
} else {
|
||||||
convertToWidget(this, input)
|
convertToWidget(this, input)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user