Set window icon.

This commit is contained in:
Cheng Zhao
2013-11-11 21:27:31 +08:00
parent cbee5efee6
commit ef0022f4da

View File

@@ -10,6 +10,8 @@ _ = require 'underscore-plus'
# Private:
module.exports =
class AtomWindow
@iconPath: path.resolve(__dirname, '..', '..', 'atom.png')
browserWindow: null
loaded: null
isSpec: null
@@ -19,7 +21,7 @@ class AtomWindow
global.atomApplication.addWindow(this)
@setupNodePath(@resourcePath)
@browserWindow = new BrowserWindow show: false, title: 'Atom'
@browserWindow = new BrowserWindow show: false, title: 'Atom', icon: AtomWindow.iconPath
@browserWindow.restart = _.wrap _.bind(@browserWindow.restart, @browserWindow), (restart) =>
@setupNodePath(@resourcePath)
restart()