From 33896a610d0050b622f15bfd4fbd98990511a0b1 Mon Sep 17 00:00:00 2001 From: KarryCharon Date: Fri, 26 Jul 2024 15:48:07 +0800 Subject: [PATCH] let node label field for node panel translation --- web/lib/litegraph.core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/lib/litegraph.core.js b/web/lib/litegraph.core.js index 427a62b59..677c893f6 100644 --- a/web/lib/litegraph.core.js +++ b/web/lib/litegraph.core.js @@ -9133,7 +9133,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;