From ab8860dc7c56834d60968025a4b771a94709f3f2 Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Fri, 3 Apr 2026 00:13:59 +0200 Subject: [PATCH] Hide branchingDefault setting when BRANCHING_ENABLED is false --- js/snapshot_manager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/snapshot_manager.js b/js/snapshot_manager.js index 9b48cc4..8c91f3f 100644 --- a/js/snapshot_manager.js +++ b/js/snapshot_manager.js @@ -3950,7 +3950,7 @@ if (window.__COMFYUI_FRONTEND_VERSION__) { if (value && timelineRefresh) timelineRefresh().catch(() => {}); }, }, - { + ...(BRANCHING_ENABLED ? [{ id: "SnapshotManager.branchingDefault", name: "Enable branching by default", type: "boolean", @@ -3961,7 +3961,7 @@ if (window.__COMFYUI_FRONTEND_VERSION__) { if (sidebarRefresh) sidebarRefresh().catch(() => {}); if (timelineRefresh) timelineRefresh().catch(() => {}); }, - }, + }] : []), ], init() {