mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 11:11:53 +00:00
Add settings option: Keep links on delete (#1504)
This commit is contained in:
@@ -98,6 +98,12 @@ watchEffect(() => {
|
|||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
watchEffect(() => {
|
||||||
|
LGraphNode.keepAllLinksOnBypass = settingStore.get(
|
||||||
|
'Comfy.Node.BypassAllLinksOnDelete'
|
||||||
|
)
|
||||||
|
})
|
||||||
|
|
||||||
watchEffect(() => {
|
watchEffect(() => {
|
||||||
nodeDefStore.showDeprecated = settingStore.get('Comfy.Node.ShowDeprecated')
|
nodeDefStore.showDeprecated = settingStore.get('Comfy.Node.ShowDeprecated')
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -476,5 +476,14 @@ export const CORE_SETTINGS: SettingParams[] = [
|
|||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
defaultValue: true,
|
defaultValue: true,
|
||||||
versionAdded: '1.3.29'
|
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'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user