Changed default button, updated link

This commit is contained in:
Matt Karl 2016-05-20 13:29:42 -04:00
parent 25cb0fcbb9
commit a1e59b814c

View file

@ -255,12 +255,12 @@ function loadApplicationPackage (packagePath) {
app.focus() app.focus()
dialog.showMessageBox({ dialog.showMessageBox({
message: 'Error opening app', message: 'Error opening app',
detail: 'Unable to open or find an Electron app. Click to learn more on how to write an app.\n\n' + detail: 'Unable to open or find an Electron app.\n\n' +
`${e.toString()}`, `${e.toString()}`,
buttons: ['Learn More', 'OK'] buttons: ['OK', 'Learn More']
}, (response) => { }, (response) => {
if (response === 0) { if (response === 1) {
shell.openExternal(`https://github.com/electron/electron/tree/v${process.versions.electron}/docs`) shell.openExternal(`http://electron.atom.io/docs`)
} }
}) })
process.exit(1) process.exit(1)