await promises. update settings schema

This commit is contained in:
bymyself
2025-04-14 10:07:03 -07:00
committed by Jin Yi
parent 9db37b7f56
commit fc9964031b

View File

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