Add Close Workflow to commands (#2171)

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Chenlei Hu <huchenlei@proton.me>
This commit is contained in:
bymyself
2025-01-06 08:50:44 -07:00
committed by GitHub
parent f2eb4e1519
commit ba31f8fa68
14 changed files with 43 additions and 0 deletions

View File

@@ -528,6 +528,16 @@ export function useCoreCommands(): ComfyCommand[] {
function: () => {
workflowService.duplicateWorkflow(workflowStore.activeWorkflow!)
}
},
{
id: 'Workspace.CloseWorkflow',
icon: 'pi pi-times',
label: 'Close Current Workflow',
versionAdded: '1.7.3',
function: () => {
if (workflowStore.activeWorkflow)
workflowService.closeWorkflow(workflowStore.activeWorkflow)
}
}
]
}