mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-07 08:30:06 +00:00
[Cleanup] Remove redundant reroute opt-in setting (#2972)
Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user