Add atom.restartApplication

Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com>
This commit is contained in:
Nathan Sobo
2016-09-20 11:37:34 -06:00
committed by Max Brunsfeld
parent 2ed2121e4b
commit 6aa8d33a05
2 changed files with 8 additions and 0 deletions

View File

@@ -57,6 +57,10 @@ class ApplicationDelegate
reloadWindow: ->
ipcRenderer.send("call-window-method", "reload")
restartApplication: ->
remote.app.relaunch({args: []})
remote.app.quit()
minimizeWindow: ->
ipcRenderer.send("call-window-method", "minimize")