Disable quick-connections on subgraphs
https://github.com/niknah/quick-connections/issues/28
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user