A full-featured download manager.
fix: remove running dmg check
Dr_rOot6c7b87010110
diff --git a/src/main/core/ExceptionHandler.js b/src/main/core/ExceptionHandler.jsindex 5924a2ae..5ae97d9e 100644--- a/src/main/core/ExceptionHandler.js+++ b/src/main/core/ExceptionHandler.js@@ -1,10 +1,6 @@import { app, dialog } from 'electron'import is from 'electron-is'import logger from './Logger'-import {- isRunningInDmg,- moveAppToApplicationsFolder-} from '../utils/index'const defaults = {showDialog: !is.dev()@@ -26,12 +22,8 @@ export default class ExceptionHandler {const { showDialog } = this.optionsprocess.on('uncaughtException', (err) => {const { message, stack } = err- logger.error(`[Motrix] uncaughtException: ${message}`)+ logger.error(`[Motrix] Uncaught exception: ${message}`)logger.error(stack)- if (message.includes('spawn') && message.includes('ENOENT') && isRunningInDmg()) {- moveAppToApplicationsFolder()- return- }if (showDialog && app.isReady()) {dialog.showErrorBox('系统错误', message)