Skip to content

Commit

Permalink
Fix menu loading
Browse files Browse the repository at this point in the history
  • Loading branch information
ppot committed Jun 2, 2017
1 parent 886551b commit d8f6ea0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions app/menus/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ const darwinMenu = require('./menus/darwin');
module.exports = (createWindow, updatePlugins) => {
const commands = getKeymaps().commands;
const menu = [
...(process.platform === 'darwin' ? darwinMenu(commands) : []),
...shellMenu(commands, createWindow),
...editMenu(commands),
...viewMenu(commands),
...pluginsMenu(commands, updatePlugins),
...windowMenu(commands),
...helpMenu(commands)
(process.platform === 'darwin' ? darwinMenu(commands) : []),
shellMenu(commands, createWindow),
editMenu(commands),
viewMenu(commands),
pluginsMenu(commands, updatePlugins),
windowMenu(commands),
helpMenu(commands)
];

return menu;
Expand Down
6 changes: 3 additions & 3 deletions app/menus/menus/window.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ module.exports = function (commands) {
accelerator: commands['window:minimize']
},
{
type: 'separator'
},
{ // It's the same thing as clicking the green traffc-light on macOS
role: 'zoom',
accelerator: commands['window:zoom']
},
{
type: 'separator'
},
{
label: 'Select Tab',
submenu: [
Expand Down

0 comments on commit d8f6ea0

Please sign in to comment.