From 7f7e67a7bca5348fbd8f461b70e4bbc8bdc6c90a Mon Sep 17 00:00:00 2001 From: niknah Date: Fri, 12 Dec 2025 11:32:07 +1100 Subject: [PATCH] Warn about "on top" option not working on nodes v2. --- js/quick_conn_start.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/js/quick_conn_start.js b/js/quick_conn_start.js index f1cc201..a494104 100644 --- a/js/quick_conn_start.js +++ b/js/quick_conn_start.js @@ -79,7 +79,7 @@ const circuitBoardLinesExt = { { value: 0, text: "Off" }, { value: 1, text: "Circuit board" }, // On top doesn't place the wires on top of the text boxes - { value: 2, text: "On top" }, + { value: 2, text: "On top (Does not work in nodes v2)" }, ], defaultValue: 1, @@ -88,7 +88,12 @@ const circuitBoardLinesExt = { circuitBoardLines.enabled = (option === 1); if (app.graph) { app.graph.config.links_ontop = (option === 2); + if (app.canvas?.graph?.config) { + app.canvas.graph.config.links_ontop = (option === 2); + } return app.graph.change.apply(app.graph, args); + } else { + console.error('app.graph not available'); } return null; },