Changed default button, updated link
This commit is contained in:
parent
25cb0fcbb9
commit
a1e59b814c
1 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue