Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Rename subgraph widgets when slot is renamed
When a slot is renamed inside a subgraph, the corresponding slots on a
subgraph Node are also renamed. However, widgets on subgraph nodes were
not updated. Since the slot name is not shown when there is a linked
widget, this would give the impression that the rename was not
functional.

If a widget exists on a subgraph node when a rename event is received,
the label on that widget is also set.
  • Loading branch information
AustinMroz committed Aug 7, 2025
commit 86824ec640e2ecc7e3875aaba956717c3d367f91
3 changes: 3 additions & 0 deletions src/lib/litegraph/src/subgraph/SubgraphNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ export class SubgraphNode extends LGraphNode implements BaseLGraph {
if (!input) throw new Error('Subgraph input not found')

input.label = newName
if (input._widget) {
input._widget.label = newName
}
},
{ signal }
)
Expand Down