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()
dialog.showMessageBox({
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()}`,
buttons: ['Learn More', 'OK']
buttons: ['OK', 'Learn More']
}, (response) => {
if (response === 0) {
shell.openExternal(`https://github.com/electron/electron/tree/v${process.versions.electron}/docs`)
if (response === 1) {
shell.openExternal(`http://electron.atom.io/docs`)
}
})
process.exit(1)