Skip to content

Commit 8927785

Browse files
committed
Add setting
1 parent f545b46 commit 8927785

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/components/graph/GraphCanvas.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<SideToolbar />
66
</template>
77
<template #graph-canvas-panel>
8-
<GraphCanvasMenu />
8+
<GraphCanvasMenu v-if="canvasMenuEnabled" />
99
</template>
1010
</LiteGraphCanvasSplitterOverlay>
1111
<TitleEditor />
@@ -59,6 +59,9 @@ const modelToNodeStore = useModelToNodeStore()
5959
const betaMenuEnabled = computed(
6060
() => settingStore.get('Comfy.UseNewMenu') !== 'Disabled'
6161
)
62+
const canvasMenuEnabled = computed(() =>
63+
settingStore.get('Comfy.Graph.CanvasMenu')
64+
)
6265
6366
watchEffect(() => {
6467
const canvasInfoEnabled = settingStore.get('Comfy.Graph.CanvasInfo')

src/stores/coreSettings.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ export const CORE_SETTINGS: SettingParams[] = [
1212
type: 'boolean',
1313
defaultValue: true
1414
},
15-
1615
{
1716
id: 'Comfy.NodeSearchBoxImpl',
1817
category: ['Comfy', 'Node Search Box', 'Implementation'],
@@ -381,5 +380,11 @@ export const CORE_SETTINGS: SettingParams[] = [
381380
type: 'hidden',
382381
options: ['Sidebar', 'Topbar'],
383382
defaultValue: 'Sidebar'
383+
},
384+
{
385+
id: 'Comfy.Graph.CanvasMenu',
386+
name: 'Show graph canvas menu',
387+
type: 'boolean',
388+
defaultValue: true
384389
}
385390
]

0 commit comments

Comments
 (0)