mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-25 00:39:49 +00:00
Persist enabling of linear mode to workflow
This commit is contained in:
@@ -1179,7 +1179,10 @@ export function useCoreCommands(): ComfyCommand[] {
|
||||
id: 'Comfy.ToggleLinear',
|
||||
icon: 'pi pi-database',
|
||||
label: 'toggle linear mode',
|
||||
function: () => (canvasStore.linearMode = !canvasStore.linearMode)
|
||||
function: () => {
|
||||
canvasStore.linearMode = !canvasStore.linearMode
|
||||
app.rootGraph.extra.linearMode = canvasStore.linearMode
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user