Relaunch Atom when changing the title bar style

Now that we have the required API

Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com>
This commit is contained in:
Nathan Sobo
2016-09-20 11:39:58 -06:00
committed by Max Brunsfeld
parent 6aa8d33a05
commit 1d740b4169

View File

@@ -734,10 +734,9 @@ class AtomApplication
promptForRelaunch: ->
chosen = dialog.showMessageBox BrowserWindow.getFocusedWindow(),
type: 'warning'
title: 'Relaunch required'
message: "You will need to relaunch Atom for this change to take effect."
buttons: ['Quit Atom', 'Cancel']
title: 'Restart required'
message: "You will need to restart Atom for this change to take effect."
buttons: ['Restart Atom', 'Cancel']
if chosen is 0
# once we're using electron v.1.2.2
# app.relaunch()
app.relaunch({args: []})
app.quit()