mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-12-29 03:43:16 +08:00
FIx Sentry “Create package manually” not working with prod flags [363594608]
This commit is contained in:
parent
896ab284c4
commit
afa6dda090
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import fs from 'fs-plus';
|
import fs from 'fs-plus';
|
||||||
import { shell, dialog, ipcRenderer } from 'electron';
|
import { shell, remote, ipcRenderer } from 'electron';
|
||||||
|
|
||||||
import Package from './package';
|
import Package from './package';
|
||||||
|
|
||||||
|
@ -182,7 +182,7 @@ export default class PackageManager {
|
||||||
|
|
||||||
createPackageManually() {
|
createPackageManually() {
|
||||||
if (!AppEnv.inDevMode()) {
|
if (!AppEnv.inDevMode()) {
|
||||||
const btn = dialog.showMessageBox({
|
const btn = remote.dialog.showMessageBox({
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
message: 'Run with debug flags?',
|
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.`,
|
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.`,
|
||||||
|
|
Loading…
Reference in a new issue