Add confirm dialog on window close

This commit is contained in:
huchenlei
2024-08-30 16:05:54 -04:00
committed by Chenlei Hu
parent 70d5e98c73
commit 68d6b1f172
4 changed files with 32 additions and 1 deletions

View File

@@ -469,7 +469,8 @@ const zSettings = z.record(z.any()).and(
'Comfy.Queue.ImageFit': z.enum(['contain', 'cover']),
'Comfy.Workflow.ModelDownload.AllowedSources': z.array(z.string()),
'Comfy.Workflow.ModelDownload.AllowedSuffixes': z.array(z.string()),
'Comfy.Node.DoubleClickTitleToEdit': z.boolean()
'Comfy.Node.DoubleClickTitleToEdit': z.boolean(),
'Comfy.Window.UnloadConfirmation': z.boolean()
})
.optional()
)