Implement application:open-license in AtomWindow

Allows the LICENSE.md file to be opened even when no windows are
open.

Closes #1624
This commit is contained in:
Kevin Sawicki 2014-05-05 15:54:21 -07:00
parent 7bb6cd99eb
commit c75d36ef93

View File

@ -167,6 +167,7 @@ class AtomApplication
@openPathOnEvent('application:open-your-keymap', 'atom://.atom/keymap')
@openPathOnEvent('application:open-your-snippets', 'atom://.atom/snippets')
@openPathOnEvent('application:open-your-stylesheet', 'atom://.atom/stylesheet')
@openPathOnEvent('application:open-license', path.join(@resourcePath, 'LICENSE.md'))
app.on 'window-all-closed', ->
app.quit() if process.platform in ['win32', 'linux']