Add autosave feature (#3330)

Co-authored-by: Benjamin Lu <templu1107@proton.me>
This commit is contained in:
Benjamin Lu
2025-04-06 18:48:00 -04:00
committed by GitHub
parent ac53296b2e
commit fa75614dc3
6 changed files with 416 additions and 10 deletions

View File

@@ -771,5 +771,21 @@ export const CORE_SETTINGS: SettingParams[] = [
type: 'hidden',
defaultValue: false,
versionAdded: '1.15.12'
},
{
id: 'Comfy.Workflow.AutoSaveDelay',
name: 'Auto Save Delay (ms)',
defaultValue: 1000,
type: 'number',
tooltip: 'Only applies if Auto Save is set to "after delay".',
versionAdded: '1.16.0'
},
{
id: 'Comfy.Workflow.AutoSave',
name: 'Auto Save',
type: 'combo',
options: ['off', 'after delay'], // Room for other options like on focus change, tab change, window change
defaultValue: 'off', // Popular requst by users (https://github.com/Comfy-Org/ComfyUI_frontend/issues/1584#issuecomment-2536610154)
versionAdded: '1.16.0'
}
]