Remove Rename Slot option from input sockets (#975)

This menu option was unintentionally inherited from input slots.

- Ref: https://github.com/Comfy-Org/ComfyUI_frontend/issues/3654
This commit is contained in:
filtered
2025-04-28 01:47:22 +10:00
committed by GitHub
parent b3d030e36b
commit 47732404cd

View File

@@ -7184,8 +7184,9 @@ export class LGraphCanvas {
: { content: "Remove Slot", slot },
)
}
if (!_slot.nameLocked)
if (!_slot.nameLocked && !(("link" in _slot) && _slot.widget)) {
menu_info.push({ content: "Rename Slot", slot })
}
if (node.getExtraSlotMenuOptions) {
menu_info.push(...node.getExtraSlotMenuOptions(slot))