Hide branchingDefault setting when BRANCHING_ENABLED is false

This commit is contained in:
2026-04-03 00:13:59 +02:00
parent 04e4095e82
commit ab8860dc7c
+2 -2
View File
@@ -3950,7 +3950,7 @@ if (window.__COMFYUI_FRONTEND_VERSION__) {
if (value && timelineRefresh) timelineRefresh().catch(() => {}); if (value && timelineRefresh) timelineRefresh().catch(() => {});
}, },
}, },
{ ...(BRANCHING_ENABLED ? [{
id: "SnapshotManager.branchingDefault", id: "SnapshotManager.branchingDefault",
name: "Enable branching by default", name: "Enable branching by default",
type: "boolean", type: "boolean",
@@ -3961,7 +3961,7 @@ if (window.__COMFYUI_FRONTEND_VERSION__) {
if (sidebarRefresh) sidebarRefresh().catch(() => {}); if (sidebarRefresh) sidebarRefresh().catch(() => {});
if (timelineRefresh) timelineRefresh().catch(() => {}); if (timelineRefresh) timelineRefresh().catch(() => {});
}, },
}, }] : []),
], ],
init() { init() {