await promises. update settings schema

This commit is contained in:
bymyself
2025-04-14 10:07:03 -07:00
parent 54a0981031
commit eb5c49f67b
2 changed files with 5 additions and 4 deletions

View File

@@ -764,9 +764,9 @@ export function useCoreCommands(): ComfyCommand[] {
icon: 'pi pi-bars', icon: 'pi pi-bars',
label: 'Custom Nodes (Legacy)', label: 'Custom Nodes (Legacy)',
versionAdded: '1.16.4', versionAdded: '1.16.4',
function: () => { function: async () => {
try { try {
useCommandStore().execute( await useCommandStore().execute(
'Comfy.Manager.CustomNodesManager.ToggleVisibility' 'Comfy.Manager.CustomNodesManager.ToggleVisibility'
) )
} catch (error) { } catch (error) {
@@ -784,9 +784,9 @@ export function useCoreCommands(): ComfyCommand[] {
icon: 'mdi mdi-puzzle', icon: 'mdi mdi-puzzle',
label: 'Manager Menu (Legacy)', label: 'Manager Menu (Legacy)',
versionAdded: '1.16.4', versionAdded: '1.16.4',
function: () => { function: async () => {
try { try {
useCommandStore().execute('Comfy.Manager.Menu.ToggleVisibility') await useCommandStore().execute('Comfy.Manager.Menu.ToggleVisibility')
} catch (error) { } catch (error) {
useToastStore().add({ useToastStore().add({
severity: 'error', severity: 'error',

View File

@@ -474,6 +474,7 @@ const zSettings = z.object({
'Comfy.Load3D.LightIntensityMinimum': z.number(), 'Comfy.Load3D.LightIntensityMinimum': z.number(),
'Comfy.Load3D.LightAdjustmentIncrement': z.number(), 'Comfy.Load3D.LightAdjustmentIncrement': z.number(),
'Comfy.Load3D.CameraType': z.enum(['perspective', 'orthographic']), 'Comfy.Load3D.CameraType': z.enum(['perspective', 'orthographic']),
'Comfy.Memory.AllowManualUnload': z.boolean(),
'pysssss.SnapToGrid': z.boolean(), 'pysssss.SnapToGrid': z.boolean(),
/** VHS setting is used for queue video preview support. */ /** VHS setting is used for queue video preview support. */
'VHS.AdvancedPreviews': z.string(), 'VHS.AdvancedPreviews': z.string(),