Set output as background (#3079)

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Christian Byrne
2025-05-21 09:15:15 -07:00
committed by GitHub
parent 32605eeb8f
commit 49400c69b6
19 changed files with 95 additions and 2 deletions

View File

@@ -219,6 +219,16 @@ const menuItems = computed<MenuItem[]>(() => [
useLitegraphService().goToNode(menuTargetNode.value.id)
},
visible: !!menuTargetNode.value
},
{
label: t('g.setAsBackground'),
icon: 'pi pi-image',
command: () => {
const url = menuTargetTask.value?.previewOutput?.url
if (url) {
void settingStore.set('Comfy.Canvas.BackgroundImage', url)
}
}
}
])