From 59e350445f4e1c98c21cab292a3998e841c1ea26 Mon Sep 17 00:00:00 2001 From: KarryCharon Date: Tue, 6 Aug 2024 10:09:05 +0800 Subject: [PATCH] let node label field for node panel translation --- src/litegraph.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/litegraph.js b/src/litegraph.js index 01592817..99da3d7a 100755 --- a/src/litegraph.js +++ b/src/litegraph.js @@ -9195,7 +9195,7 @@ LGraphNode.prototype.executeAction = function(action) } if (!low_quality) { ctx.font = this.title_text_font; - var title = String(node.getTitle()); + var title = String(node.label || node.getTitle()); if (title) { if (selected) { ctx.fillStyle = LiteGraph.NODE_SELECTED_TITLE_COLOR;