mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-13 08:44:12 +03:00
Show warning message opening opening dev window without repo cloned
This commit is contained in:
parent
162bab506d
commit
a460530770
@ -245,6 +245,14 @@ class AtomApplication
|
|||||||
# + initialSize:
|
# + initialSize:
|
||||||
# Object with height and width keys.
|
# Object with height and width keys.
|
||||||
openPath: ({pathToOpen, pidToKillWhenClosed, newWindow, devMode, initialSize}={}) ->
|
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
|
if pathToOpen
|
||||||
[basename, initialLine] = path.basename(pathToOpen).split(':')
|
[basename, initialLine] = path.basename(pathToOpen).split(':')
|
||||||
if initialLine
|
if initialLine
|
||||||
|
Loading…
Reference in New Issue
Block a user