Skip to content

Commit 33896a6

Browse files
committed
let node label field for node panel translation
1 parent 25b51b1 commit 33896a6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎web/lib/litegraph.core.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9133,7 +9133,7 @@ LGraphNode.prototype.executeAction = function(action)
91339133
}
91349134
if (!low_quality) {
91359135
ctx.font = this.title_text_font;
9136-
var title = String(node.getTitle());
9136+
var title = String(node.label || node.getTitle());
91379137
if (title) {
91389138
if (selected) {
91399139
ctx.fillStyle = LiteGraph.NODE_SELECTED_TITLE_COLOR;

0 commit comments

Comments
 (0)