From 370975a4ac13fe05f6783191467d7d7a18db0cb3 Mon Sep 17 00:00:00 2001 From: shanexi Date: Thu, 17 Oct 2024 11:20:20 +0800 Subject: [PATCH] Refactor connect --- web/shellagent.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web/shellagent.js b/web/shellagent.js index d449ebd..9fc782e 100644 --- a/web/shellagent.js +++ b/web/shellagent.js @@ -194,7 +194,11 @@ app.registerExtension({ callback: () => { this.convertWidgetToInput(w); const node = addNode("ShellAgentPluginInputText", this, { before: true }); - node.connect(0, this, 1); + if (nodeData.name === 'CLIPTextEncode') { + node.connect(0, this, 1); + } else { + window.alert('[ShellAgent] Unsupported quick operation.') + } } }) }