feat: add settings option to always show advanced widgets on all nodes (#8244)

Solved issue:
Currently, the display status of advanced widgets can only be set
individually for each node, but users would like to have a global switch
to always display all advanced widgets.

I also adjusted some related code to solve the issue of code
duplication.

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-8244-feat-add-settings-option-to-always-show-advanced-widgets-on-all-nodes-2f06d73d365081358023efa3e1ff3094)
by [Unito](https://www.unito.io)
This commit is contained in:
Rizumu Ayaka
2026-01-24 09:47:51 +07:00
committed by GitHub
parent 3e9a390c25
commit 1b1356951e
9 changed files with 125 additions and 48 deletions

View File

@@ -430,7 +430,8 @@ const zSettings = z.object({
'LiteGraph.Node.DefaultPadding': z.boolean(),
'LiteGraph.Pointer.TrackpadGestures': z.boolean(),
'Comfy.VersionCompatibility.DisableWarnings': z.boolean(),
'Comfy.RightSidePanel.IsOpen': z.boolean()
'Comfy.RightSidePanel.IsOpen': z.boolean(),
'Comfy.Node.AlwaysShowAdvancedWidgets': z.boolean()
})
export type EmbeddingsResponse = z.infer<typeof zEmbeddingsResponse>