[fix] Update canvas when removing subgraph IO slots to re-render links (#1173)

This commit is contained in:
Christian Byrne
2025-07-29 18:20:15 -07:00
committed by GitHub
parent fe3b8be89f
commit abf93d2c11

View File

@@ -68,6 +68,7 @@ export class SubgraphNode extends LGraphNode implements BaseLGraph {
if (widget) this.ensureWidgetRemoved(widget)
this.removeInput(e.detail.index)
this.setDirtyCanvas(true, true)
}, { signal })
subgraphEvents.addEventListener("output-added", (e) => {
@@ -77,6 +78,7 @@ export class SubgraphNode extends LGraphNode implements BaseLGraph {
subgraphEvents.addEventListener("removing-output", (e) => {
this.removeOutput(e.detail.index)
this.setDirtyCanvas(true, true)
}, { signal })
subgraphEvents.addEventListener("renaming-input", (e) => {