Skip to content

Commit 30bafcd

Browse files
hide "unload models" and "unload cache" menu entries on cloud (#6879)
Hides these features which the user does not need when on cloud. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-6879-hide-unload-models-and-unload-cache-menu-entries-on-cloud-2b46d73d3650816a8e22e913a848e4ac) by [Unito](https://www.unito.io)
1 parent b789791 commit 30bafcd

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/constants/coreMenuCommands.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { isCloud } from '@/platform/distribution/types'
2+
13
export const CORE_MENU_COMMANDS = [
24
[[], ['Comfy.NewBlankWorkflow']],
35
[[], []], // Separator after New
@@ -18,8 +20,12 @@ export const CORE_MENU_COMMANDS = [
1820
['Edit'],
1921
[
2022
'Comfy.RefreshNodeDefinitions',
21-
'Comfy.Memory.UnloadModels',
22-
'Comfy.Memory.UnloadModelsAndExecutionCache'
23+
...(isCloud
24+
? []
25+
: [
26+
'Comfy.Memory.UnloadModels',
27+
'Comfy.Memory.UnloadModelsAndExecutionCache'
28+
])
2329
]
2430
],
2531
[['View'], []],

0 commit comments

Comments
 (0)