From f935d5ffe3c67ad30066e38c606cf074dffa23fa Mon Sep 17 00:00:00 2001 From: inventivetalent Date: Fri, 26 Oct 2018 17:58:19 +0200 Subject: [PATCH] make slot name lockable --- src/litegraph.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/litegraph.js b/src/litegraph.js index 1b907015d..2bb10b8b6 100755 --- a/src/litegraph.js +++ b/src/litegraph.js @@ -7228,7 +7228,7 @@ LGraphCanvas.prototype.processContextMenu = function( node, event ) { menu_info = []; menu_info.push( slot.locked ? "Cannot remove" : { content: "Remove Slot", slot: slot } ); - menu_info.push( { content: "Rename Slot", slot: slot } ); + menu_info.push( slot.nameLocked ? "Cannot rename" : { content: "Rename Slot", slot: slot } ); options.title = (slot.input ? slot.input.type : slot.output.type) || "*"; if(slot.input && slot.input.type == LiteGraph.ACTION) options.title = "Action";