Update ui_mixlab.js

This commit is contained in:
shadowcz007
2024-01-20 22:39:56 +08:00
parent 812879610a
commit 9a4f2ebc70
+11
View File
@@ -697,6 +697,17 @@ app.registerExtension({
})
} // and the callback
},
{
content: `Remove Group&Nodes ♾️Mixlab`, // with a name
callback: async (value, opts, e, menu, group) => {
// console.log(group)
let nodes = group._nodes
for (const node of nodes) {
app.graph.remove(node);
}
app.graph.remove(group);
} // and the callback
},
null,
...options
] // and return the options