From 47732404cdc77bdaece543ae3c6345b1b087845f Mon Sep 17 00:00:00 2001 From: filtered <176114999+webfiltered@users.noreply.github.com> Date: Mon, 28 Apr 2025 01:47:22 +1000 Subject: [PATCH] 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 --- src/LGraphCanvas.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/LGraphCanvas.ts b/src/LGraphCanvas.ts index 2e1b9682e..5564a5a19 100644 --- a/src/LGraphCanvas.ts +++ b/src/LGraphCanvas.ts @@ -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))