Skip to content

Commit 0a2b66b

Browse files
committed
Disable quick-connections on subgraphs
#28
1 parent f81d98f commit 0a2b66b

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ python -m http.server
2828

2929
## Changelog
3030

31+
2025-08-26 v1.0.20: Disable quick-connections in subgraphs, not working.
3132
2025-08-23 v1.0.19: Possible crashes in subgraph node fix. https://github.com/niknah/quick-connections/issues/25
3233
2025-07-15 v1.0.17: Draw connections in subgraph mode. https://github.com/niknah/quick-connections/issues/24
3334
2025-07-04 v1.0.16: Problem with the enable/disable toggle not working. https://github.com/niknah/quick-connections/issues/19

js/QuickConnection.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ export class QuickConnection {
7878
console.error('no canvas', this.canvas); // eslint-disable-line no-console
7979
} else {
8080
this.canvas.canvas.addEventListener('litegraph:canvas', (e) => {
81+
if (this.canvas?.subgraph) {
82+
return;
83+
}
84+
8185
const { detail } = e;
8286
if (!this.release_link_on_empty_shows_menu
8387
&& detail && detail.subType === 'empty-release'
@@ -220,6 +224,9 @@ export class QuickConnection {
220224
console.error('no canvas or mouse yet', this.canvas); // eslint-disable-line no-console
221225
return;
222226
}
227+
if (this.canvas.subgraph) {
228+
return;
229+
}
223230

224231
this.insideConnection = null;
225232

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "quick-connections"
33
description = "Quick connections, Circuit board connections"
4-
version = "1.0.19"
4+
version = "1.0.20"
55
license = {text = "MIT License"}
66

77
[project.urls]

0 commit comments

Comments
 (0)