mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-07-08 11:56:36 +00:00
remove dev tools menu item (#882)
This commit is contained in:
parent
04c3d0c1d3
commit
9e89964df2
@ -14,6 +14,7 @@ import {
|
|||||||
} from './contribution';
|
} from './contribution';
|
||||||
import { nls } from '@theia/core/lib/common';
|
import { nls } from '@theia/core/lib/common';
|
||||||
import { IDEUpdaterCommands } from '../ide-updater/ide-updater-commands';
|
import { IDEUpdaterCommands } from '../ide-updater/ide-updater-commands';
|
||||||
|
import { ElectronCommands } from '@theia/core/lib/electron-browser/menu/electron-menu-contribution';
|
||||||
|
|
||||||
@injectable()
|
@injectable()
|
||||||
export class Help extends Contribution {
|
export class Help extends Contribution {
|
||||||
@ -87,6 +88,10 @@ export class Help extends Contribution {
|
|||||||
}
|
}
|
||||||
|
|
||||||
registerMenus(registry: MenuModelRegistry): void {
|
registerMenus(registry: MenuModelRegistry): void {
|
||||||
|
registry.unregisterMenuAction({
|
||||||
|
commandId: ElectronCommands.TOGGLE_DEVELOPER_TOOLS.id,
|
||||||
|
});
|
||||||
|
|
||||||
registry.registerMenuAction(ArduinoMenus.HELP__MAIN_GROUP, {
|
registry.registerMenuAction(ArduinoMenus.HELP__MAIN_GROUP, {
|
||||||
commandId: Help.Commands.GETTING_STARTED.id,
|
commandId: Help.Commands.GETTING_STARTED.id,
|
||||||
order: '0',
|
order: '0',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user