Disabling Plugins Menu submenu items

Panel menu items can be disabled using options in uxp.setup.panels in Javascript:

			menuItems: [
				{
					id: "about",
					label: "About..."
				},
				{
					id: "clearCache",
					label: "Clear Cache..."
				},
				{
					id: "preferences",
					label: "Preferences...",
					enabled: false
				}
			]

Here’s what that produced:

But is there a way to disable items from the Adobe Photoshop Plugins menu?

I’d like to disable the Preferences submenu item from the Adobe Photoshop Plugins menu shown above.
I tried each of these options in the manifest without any luck:

			"enabled": false
			"enabled": "false"
			"disabled": true
			"disabled": "true"

jsw

enabled: false seems to work for me (or "enabled": false, that shouldn’t make a difference):

Maybe you just need to reload the plugin?

Interestingly, if a menu has only one disabled sub menu item, the parent will get disabled as well apparently.

Thanks for that suggestion @simonhenke. Much appreciated.
I bet I did forget to unload and then load after the manifest change. Seems like reload should re-read the manifest, but that’s an issue for Adobe to track down.
The first time I tried returning the "enabled": false setting, I did manage to get all three menu items disabled. But then thinking that I had the enabled tag in the wrong place, I edited the manifest file and tried again. But never again have I seen any of them disabled.
To help Adobe figure this out, here’s the entry points section of my manifest:

	"entrypoints": [
		{
			"type": "panel",
			"id": "BLOX_Total_CMS",
			"label": {
				"default": "BLOX Total CMS"
			},
			"minimumSize": {
				"width": 230,
				"height": 288
			},
			"maximumSize": {
				"width": 1236,
				"height": 1020
			},
			"preferredDockedSize": {
				"width": 230,
				"height": 288
			},
			"preferredFloatingSize": {
				"width": 230,
				"height": 288
			},
			"icons": [
				{
					"width": 32,
					"height": 32,
					"path": "icons/icon_D.png",
					"scale": [
						1,
						2
					],
					"theme": [
						"dark",
						"darkest"
					],
					"species": [
						"generic"
					]
				},
				{
					"width": 32,
					"height": 32,
					"path": "icons/icon_N.png",
					"scale": [
						1,
						2
					],
					"theme": [
						"lightest",
						"light"
					],
					"species": [
						"generic"
					]
				}
			]
		},
		{
			"type": "command",
			"id": "about",
			"label": {
				"de": "Über...",
				"default": "About...",
				"en": "About...",
				"fr": "À propos...",
				"it": "Informazioni su...",
				"ja": "情報...",
				"ko": "정보...",
				"pt": "Sobre...",
				"ru": "О программе...",
				"zh": "关于..."
			}
		},
		{
			"type": "command",
			"id": "clearCache",
			"label": {
				"de": "Cache leeren...",
				"default": "Clear Cache...",
				"en": "Clear Cache...",
				"fr": "Vider le cache...",
				"it": "Cancella cache...",
				"ja": "キャッシュをクリア...",
				"ko": "캐시 지우기...",
				"pt": "Limpar cache...",
				"ru": "Очистить кэш...",
				"sp": "Limpiar caché...",
				"zh": "清除缓存..."
			}
		},
		{
			"type": "command",
			"id": "preferences",
			"label": {
				"de": "Einstellungen...",
				"default": "Preferences...",
				"en": "Preferences...",
				"fr": "Préférences...",
				"it": "Preferenze...",
				"ja": "環境設定...",
				"ko": "환경설정...",
				"pt": "Preferências...",
				"ru": "Настройки...",
				"sp": "Preferencias...",
				"zh": "首选项..."
			},
			"enabled": false
		}
	],

UPDATE:
after a few relaunches and loads, yes, again, I got all the Plugins > plugin > Submenus disabled:


but I’m still using that manifest file above.
Definitely seems like a bug somewhere.

I’m not setting up the menu in the manifest.json, but instead it’s part of the panel object I pass to entrypoints.setup() during runtime :thinking:
That also seems to be the correct way as specified in the docs:

Flyout menus are defined by a JSON structure that’s passed to the UXP entrypoints.setup method.

Yes. Those are for the panel’s flyout menus.
That part works great as shown here:

But I’m trying to replicate that behavior in Adobe Photoshop’s Plugins > my plugin name > submenus. And those are handled in the manifest. And there, I either get all enabled or none enabled:

Can you put

"enabled": true

on the ones you want to be sure are enabled. Maybe the default isn’t working.

Thanks for the suggestion, @AnthonyK.
Alas, all three of the ones in the Plugins menu remain disabled.