Rename plugins menu to tools menu

This commit is contained in:
Labhansh Agrawal 2021-01-22 15:05:26 +05:30 committed by Benjamin Staneck
parent 6dbb1afdf1
commit b59d512fe5
2 changed files with 4 additions and 4 deletions

View file

@ -7,7 +7,7 @@ import {icon} from '../config/paths';
import viewMenu from './menus/view'; import viewMenu from './menus/view';
import shellMenu from './menus/shell'; import shellMenu from './menus/shell';
import editMenu from './menus/edit'; import editMenu from './menus/edit';
import pluginsMenu from './menus/plugins'; import toolsMenu from './menus/tools';
import windowMenu from './menus/window'; import windowMenu from './menus/window';
import helpMenu from './menus/help'; import helpMenu from './menus/help';
import darwinMenu from './menus/darwin'; import darwinMenu from './menus/darwin';
@ -64,7 +64,7 @@ export const createMenu = (
shellMenu(commandKeys, execCommand), shellMenu(commandKeys, execCommand),
editMenu(commandKeys, execCommand), editMenu(commandKeys, execCommand),
viewMenu(commandKeys, execCommand), viewMenu(commandKeys, execCommand),
pluginsMenu(commandKeys, execCommand), toolsMenu(commandKeys, execCommand),
windowMenu(commandKeys, execCommand), windowMenu(commandKeys, execCommand),
helpMenu(commandKeys, showAbout) helpMenu(commandKeys, showAbout)
]; ];

View file

@ -5,10 +5,10 @@ export default (
execCommand: (command: string, focusedWindow?: BrowserWindow) => void execCommand: (command: string, focusedWindow?: BrowserWindow) => void
): MenuItemConstructorOptions => { ): MenuItemConstructorOptions => {
return { return {
label: 'Plugins', label: 'Tools',
submenu: [ submenu: [
{ {
label: 'Update', label: 'Update plugins',
accelerator: commands['plugins:update'], accelerator: commands['plugins:update'],
click() { click() {
execCommand('plugins:update'); execCommand('plugins:update');