Migrate deprecated setting values (#954)

This commit is contained in:
Chenlei Hu
2024-09-24 16:24:56 +09:00
parent 6a8287e192
commit 4e5bcd6a3b
4 changed files with 47 additions and 2 deletions

View File

@@ -379,7 +379,13 @@ export const CORE_SETTINGS: SettingParams[] = [
name: 'Use new menu and workflow management.',
experimental: true,
type: 'combo',
options: ['Disabled', 'Floating']
options: ['Disabled', 'Floating'],
migrateDeprecatedValue: (value: string) => {
if (['Top', 'Bottom'].includes(value)) {
return 'Floating'
}
return value
}
},
{
id: 'Comfy.Workflow.WorkflowTabsPosition',