[Cleanup] Remove redundant reroute opt-in setting (#2972)

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
filtered
2025-03-11 23:25:16 +11:00
committed by GitHub
parent 710bc2bb2e
commit 03bf81cc1b
4 changed files with 8 additions and 15 deletions

View File

@@ -77,15 +77,6 @@ export const useLitegraphSettings = () => {
}
})
watchEffect(() => {
const reroutesEnabled = settingStore.get('Comfy.RerouteBeta')
const { canvas } = canvasStore
if (canvas) {
canvas.reroutesEnabled = reroutesEnabled
canvas.setDirty(false, true)
}
})
watchEffect(() => {
const maximumFps = settingStore.get('LiteGraph.Canvas.MaximumFps')
const { canvas } = canvasStore

View File

@@ -528,12 +528,12 @@ export const CORE_SETTINGS: SettingParams[] = [
id: 'Comfy.RerouteBeta',
category: ['LiteGraph', 'RerouteBeta'],
name: 'Opt-in to the reroute beta test',
tooltip:
'Enables the new native reroutes.\n\nReroutes can be added by holding alt and dragging from a link line, or on the link menu.\n\nDisabling this option is non-destructive - reroutes are hidden.',
experimental: true,
tooltip: 'No longer has any effect; reroutes are always enabled.',
deprecated: true,
type: 'boolean',
defaultValue: false,
versionAdded: '1.3.42'
versionAdded: '1.3.42',
versionModified: '1.13.3'
},
{
id: 'Comfy.Graph.LinkMarkers',

View File

@@ -245,7 +245,7 @@
},
"Comfy_RerouteBeta": {
"name": "Opt-in to the reroute beta test",
"tooltip": "Enables the new native reroutes.\n\nReroutes can be added by holding alt and dragging from a link line, or on the link menu.\n\nDisabling this option is non-destructive - reroutes are hidden."
"tooltip": "No longer has any effect; reroutes are always enabled."
},
"Comfy_Sidebar_Location": {
"name": "Sidebar location",

View File

@@ -332,7 +332,9 @@ export const useWorkflowService = () => {
skip_events: true,
skip_render: true
})
canvas.reroutesEnabled = app.canvas.reroutesEnabled
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore Temporary fix for Litegraph issue.
canvas.reroutesEnabled = true
canvas.selectItems()
canvas.copyToClipboard()
app.canvas.pasteFromClipboard(options)