Add settings option: Keep links on delete (#1504)

This commit is contained in:
filtered
2024-11-11 13:33:48 +11:00
committed by GitHub
parent d1e019589d
commit 43012eb1d1
2 changed files with 15 additions and 0 deletions

View File

@@ -98,6 +98,12 @@ watchEffect(() => {
)
})
watchEffect(() => {
LGraphNode.keepAllLinksOnBypass = settingStore.get(
'Comfy.Node.BypassAllLinksOnDelete'
)
})
watchEffect(() => {
nodeDefStore.showDeprecated = settingStore.get('Comfy.Node.ShowDeprecated')
})

View File

@@ -476,5 +476,14 @@ export const CORE_SETTINGS: SettingParams[] = [
type: 'boolean',
defaultValue: true,
versionAdded: '1.3.29'
},
{
id: 'Comfy.Node.BypassAllLinksOnDelete',
name: 'Keep all links when deleting nodes',
tooltip:
'When deleting a node, attempt to reconnect all of its input and output links (bypassing the deleted node)',
type: 'boolean',
defaultValue: true,
versionAdded: '1.3.40'
}
]