Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #4093 from luixxiul/bringAllToFront-macOS
Browse files Browse the repository at this point in the history
Show "Bring All to Front" only on macOS
  • Loading branch information
bbondy authored Sep 19, 2016
2 parents 3fbf38d + 56e920c commit c5ac72c
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions app/browser/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ const createBookmarksSubmenu = () => {
}

const createWindowSubmenu = () => {
return [
const submenu = [
{
label: locale.translation('minimize'),
accelerator: 'CmdOrCtrl+M',
Expand Down Expand Up @@ -438,13 +438,20 @@ const createWindowSubmenu = () => {
CommonMenu.separatorMenuItem,
CommonMenu.bookmarksManagerMenuItem(),
CommonMenu.downloadsMenuItem(),
CommonMenu.passwordsMenuItem(),
CommonMenu.separatorMenuItem,
{
label: locale.translation('bringAllToFront'),
role: 'front'
}
CommonMenu.passwordsMenuItem()
]

if (isDarwin) {
submenu.push(
CommonMenu.separatorMenuItem,
{
label: locale.translation('bringAllToFront'),
role: 'front'
}
)
}

return submenu
}

const createHelpSubmenu = () => {
Expand Down

0 comments on commit c5ac72c

Please sign in to comment.