mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
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:
committed by
Max Brunsfeld
parent
6aa8d33a05
commit
1d740b4169
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user