I used the nativeWindowOpen option available in electron 1.7
I set the menu for each window. Before, when a window was created, the menu was added again and in every window.
On macOS the menu is shared, so win.setMenu does nothing. So I used Menu.setApplicationMenu which seemed to work ok(ish).
I used the
nativeWindowOpen
option available in electron 1.7 I set the menu for each window. Before, when a window was created, the menu was added again and in every window. On macOS the menu is shared, sowin.setMenu
does nothing. So I usedMenu.setApplicationMenu
which seemed to work ok(ish).To merge it needs: