Disable quick-connections on subgraphs

https://github.com/niknah/quick-connections/issues/28
This commit is contained in:
niknah
2025-08-26 09:56:22 +10:00
parent f81d98f8e2
commit 0a2b66bd9e
3 changed files with 9 additions and 1 deletions
+1
View File
@@ -28,6 +28,7 @@ python -m http.server
## Changelog
2025-08-26 v1.0.20: Disable quick-connections in subgraphs, not working.
2025-08-23 v1.0.19: Possible crashes in subgraph node fix. https://github.com/niknah/quick-connections/issues/25
2025-07-15 v1.0.17: Draw connections in subgraph mode. https://github.com/niknah/quick-connections/issues/24
2025-07-04 v1.0.16: Problem with the enable/disable toggle not working. https://github.com/niknah/quick-connections/issues/19
+7
View File
@@ -78,6 +78,10 @@ export class QuickConnection {
console.error('no canvas', this.canvas); // eslint-disable-line no-console
} else {
this.canvas.canvas.addEventListener('litegraph:canvas', (e) => {
if (this.canvas?.subgraph) {
return;
}
const { detail } = e;
if (!this.release_link_on_empty_shows_menu
&& detail && detail.subType === 'empty-release'
@@ -220,6 +224,9 @@ export class QuickConnection {
console.error('no canvas or mouse yet', this.canvas); // eslint-disable-line no-console
return;
}
if (this.canvas.subgraph) {
return;
}
this.insideConnection = null;
+1 -1
View File
@@ -1,7 +1,7 @@
[project]
name = "quick-connections"
description = "Quick connections, Circuit board connections"
version = "1.0.19"
version = "1.0.20"
license = {text = "MIT License"}
[project.urls]