let node label field for node panel translation

This commit is contained in:
KarryCharon 2024-07-26 15:48:07 +08:00
parent 25b51b1a8b
commit 33896a610d

View File

@ -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;