Refactor connect

This commit is contained in:
shanexi
2024-10-17 11:20:20 +08:00
parent aa984eb533
commit 370975a4ac
+5 -1
View File
@@ -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.')
}
}
})
}