mirror of
https://github.com/atom/atom.git
synced 2026-01-22 05:17:57 -05:00
Set window icon.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user