Get rid of the ugly ATOM_BROWSER_INTERNAL_NEW message.
This commit is contained in:
parent
cfca12d4a5
commit
d3f33152d0
7 changed files with 29 additions and 37 deletions
|
@ -1,9 +1,7 @@
|
|||
BrowserWindow = require 'browser-window'
|
||||
EventEmitter = require('events').EventEmitter
|
||||
IDWeakMap = require 'id-weak-map'
|
||||
MenuItem = require 'menu-item'
|
||||
|
||||
app = require 'app'
|
||||
bindings = process.atomBinding 'menu'
|
||||
|
||||
Menu = bindings.Menu
|
||||
|
@ -52,7 +50,7 @@ Menu.setApplicationMenu = (menu) ->
|
|||
if process.platform is 'darwin'
|
||||
bindings.setApplicationMenu menu
|
||||
else
|
||||
windows = app.getBrowserWindows()
|
||||
windows = BrowserWindow.getAllWindows()
|
||||
w.setMenu menu for w in windows
|
||||
|
||||
Menu.getApplicationMenu = -> applicationMenu
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue