From afa6dda09005f2a1f4455cf54f4163c529fb45ec Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Mon, 29 Jan 2018 08:22:14 -0800 Subject: [PATCH] =?UTF-8?q?FIx=20Sentry=20=E2=80=9CCreate=20package=20manu?= =?UTF-8?q?ally=E2=80=9D=20not=20working=20with=20prod=20flags=20[36359460?= =?UTF-8?q?8]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/package-manager.es6 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/package-manager.es6 b/app/src/package-manager.es6 index 0fbf6c5c2..56c5c6005 100644 --- a/app/src/package-manager.es6 +++ b/app/src/package-manager.es6 @@ -1,6 +1,6 @@ import path from 'path'; import fs from 'fs-plus'; -import { shell, dialog, ipcRenderer } from 'electron'; +import { shell, remote, ipcRenderer } from 'electron'; import Package from './package'; @@ -182,7 +182,7 @@ export default class PackageManager { createPackageManually() { if (!AppEnv.inDevMode()) { - const btn = dialog.showMessageBox({ + const btn = remote.dialog.showMessageBox({ type: 'warning', message: 'Run with debug flags?', detail: `To develop plugins, you should run Mailspring with debug flags. This gives you better error messages, the debug version of React, and more. You can disable it at any time from the Developer menu.`,