{"action":"created","issue":{"url":"https://api.github.com/repos/electron/electron/issues/5015","repository_url":"https://api.github.com/repos/electron/electron","labels_url":"https://api.github.com/repos/electron/electron/issues/5015/labels{/name}","comments_url":"https://api.github.com/repos/electron/electron/issues/5015/comments","events_url":"https://api.github.com/repos/electron/electron/issues/5015/events","html_url":"https://github.com/electron/electron/issues/5015","id":145659620,"number":5015,"title":"Setting Application Menu with \"Type: 'Normal'\" Removes It","user":{"login":"sqwk","id":1353312,"avatar_url":"https://avatars.githubusercontent.com/u/1353312?v=3","gravatar_id":"","url":"https://api.github.com/users/sqwk","html_url":"https://github.com/sqwk","followers_url":"https://api.github.com/users/sqwk/followers","following_url":"https://api.github.com/users/sqwk/following{/other_user}","gists_url":"https://api.github.com/users/sqwk/gists{/gist_id}","starred_url":"https://api.github.com/users/sqwk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sqwk/subscriptions","organizations_url":"https://api.github.com/users/sqwk/orgs","repos_url":"https://api.github.com/users/sqwk/repos","events_url":"https://api.github.com/users/sqwk/events{/privacy}","received_events_url":"https://api.github.com/users/sqwk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-04T11:38:36Z","updated_at":"2016-04-07T11:19:16Z","closed_at":"2016-04-07T11:19:16Z","body":"* Electron version: 0.37.3\r\n* Operating system: OSX 10.11\r\n\r\nI am having trouble setting an application menu on OSX, compiling with `gulp-atom-electron`.\r\n\r\nWhen setting a menubar using `Menu.setApplicationMenu()` from either the main process or the renderer process the menu disappears completely, also disabling the ⌘Q shortcut. All that is left is the name of the app, clickable, but without any submenu.\r\n\r\nWhen `Menu.setApplicationMenu()` is not executed the menu is left as it is, with the default Quit under the app name.\r\n\r\n    const electron = require('electron');\r\n    const Menu                               = electron.Menu;\r\n    const MenuItem                           = electron.MenuItem;\r\n\r\n    app.once('ready', function () {\r\n        // Main application menu\r\n        var name = app.getName();\r\n        var menu = new Menu();\r\n        menu.append(new MenuItem({ type: 'normal', label: name, submenu: [] }));\r\n        menu.append(new MenuItem({ type: 'normal', label: 'Edit', submenu: [] }));\r\n        Menu.setApplicationMenu(menu);\r\n    });\r\n"},"comment":{"url":"https://api.github.com/repos/electron/electron/issues/comments/206822290","html_url":"https://github.com/electron/electron/issues/5015#issuecomment-206822290","issue_url":"https://api.github.com/repos/electron/electron/issues/5015","id":206822290,"user":{"login":"zcbenz","id":639601,"avatar_url":"https://avatars.githubusercontent.com/u/639601?v=3","gravatar_id":"","url":"https://api.github.com/users/zcbenz","html_url":"https://github.com/zcbenz","followers_url":"https://api.github.com/users/zcbenz/followers","following_url":"https://api.github.com/users/zcbenz/following{/other_user}","gists_url":"https://api.github.com/users/zcbenz/gists{/gist_id}","starred_url":"https://api.github.com/users/zcbenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zcbenz/subscriptions","organizations_url":"https://api.github.com/users/zcbenz/orgs","repos_url":"https://api.github.com/users/zcbenz/repos","events_url":"https://api.github.com/users/zcbenz/events{/privacy}","received_events_url":"https://api.github.com/users/zcbenz/received_events","type":"User","site_admin":true},"created_at":"2016-04-07T11:19:16Z","updated_at":"2016-04-07T11:19:16Z","body":"The first menu item of application menu bar has to be a submenu."}}