Default workflow subgraph attribute

This commit is contained in:
space-nuko
2023-06-01 18:43:45 -05:00
parent e8539add51
commit b1dd8a6242
3 changed files with 18 additions and 1 deletions

View File

@@ -941,7 +941,11 @@ export default class ComfyApp {
if (workflow.attrs.queuePromptButtonRunWorkflow) {
// Hold control to queue at the front
const num = this.ctrlDown ? -1 : 0;
this.queuePrompt(workflow, num, 1);
let tag = null;
if (workflow.attrs.queuePromptButtonDefaultWorkflow) {
tag = workflow.attrs.queuePromptButtonDefaultWorkflow
}
this.queuePrompt(workflow, num, 1, tag);
}
}