Show warning message opening opening dev window without repo cloned

This commit is contained in:
Kevin Sawicki 2013-12-05 10:43:45 -08:00
parent 162bab506d
commit a460530770

View File

@ -245,6 +245,14 @@ class AtomApplication
# + initialSize:
# Object with height and width keys.
openPath: ({pathToOpen, pidToKillWhenClosed, newWindow, devMode, initialSize}={}) ->
if devMode and not fs.existsSync(global.devResourcePath)
dialog.showMessageBox
type: 'warning'
buttons: ['OK']
message: 'Atom source directory not found.'
detail: 'To run a window in dev mode you need to have the atom/atom repo cloned to ~/github/atom'
return
if pathToOpen
[basename, initialLine] = path.basename(pathToOpen).split(':')
if initialLine