diff --git a/src/components/graph/GraphCanvas.vue b/src/components/graph/GraphCanvas.vue index 8003547d..731e132b 100644 --- a/src/components/graph/GraphCanvas.vue +++ b/src/components/graph/GraphCanvas.vue @@ -5,7 +5,7 @@ @@ -59,6 +59,9 @@ const modelToNodeStore = useModelToNodeStore() const betaMenuEnabled = computed( () => settingStore.get('Comfy.UseNewMenu') !== 'Disabled' ) +const canvasMenuEnabled = computed(() => + settingStore.get('Comfy.Graph.CanvasMenu') +) watchEffect(() => { const canvasInfoEnabled = settingStore.get('Comfy.Graph.CanvasInfo') diff --git a/src/stores/coreSettings.ts b/src/stores/coreSettings.ts index ef4e1ae2..acdc4bd1 100644 --- a/src/stores/coreSettings.ts +++ b/src/stores/coreSettings.ts @@ -12,7 +12,6 @@ export const CORE_SETTINGS: SettingParams[] = [ type: 'boolean', defaultValue: true }, - { id: 'Comfy.NodeSearchBoxImpl', category: ['Comfy', 'Node Search Box', 'Implementation'], @@ -381,5 +380,11 @@ export const CORE_SETTINGS: SettingParams[] = [ type: 'hidden', options: ['Sidebar', 'Topbar'], defaultValue: 'Sidebar' + }, + { + id: 'Comfy.Graph.CanvasMenu', + name: 'Show graph canvas menu', + type: 'boolean', + defaultValue: true } ]