Skip to content

Commit

Permalink
Update error dialog style
Browse files Browse the repository at this point in the history
  • Loading branch information
yuya-oc committed Nov 1, 2017
1 parent 00b7a80 commit 0e1e422
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/main/CriticalErrorHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class CriticalErrorHandler {
windowUnresponsiveHandler() {
const result = dialog.showMessageBox(this.mainWindow, {
type: 'warning',
title: `Unresponsive - ${app.getName()}`,
title: app.getName(),
message: 'The window is no longer responsive.\nDo you wait until the window becomes responsive again?',
buttons: ['No', 'Yes'],
defaultId: 0
Expand All @@ -63,12 +63,13 @@ class CriticalErrorHandler {
const showMessageBox = bindWindowToShowMessageBox(this.mainWindow);
const result = showMessageBox({
type: 'error',
title: `Error - ${app.getName()}`,
message: `An internal error has occurred: ${err.message}\nThe application will quit.`,
buttons: ['OK', 'Show detail'],
defaultId: 0
title: app.getName(),
message: `The ${app.getName()} app quit unexpectedly. Click "Show Details" to learn more.\n\n Internal error: ${err.message}`,
buttons: ['Show details', 'OK'],
defaultId: 1,
noLink: true
});
if (result === 1) {
if (result === 0) {
const child = openDetachedExternal(file);
if (child) {
child.on('error', (spawnError) => {
Expand Down

0 comments on commit 0e1e422

Please sign in to comment.