Sentry fix: when the web contents have crashed, we can’t mount a dialog to the window reliably

This commit is contained in:
Ben Gotow 2019-06-16 13:55:03 -05:00
parent 7db9258f5a
commit b70e27a66a

View file

@ -298,7 +298,7 @@ export default class MailspringWindow extends EventEmitter {
if (this.neverClose) {
this.browserWindow.reload();
} else {
const chosen = dialog.showMessageBox(this.browserWindow, {
const chosen = dialog.showMessageBox({
type: 'warning',
buttons: ['Close Window', 'Reload', 'Keep It Open'],
message: 'Mailspring has crashed',