A full-featured download manager.
fix: destroy tray when app exit
Dr_rOot178f2103f1e3
diff --git a/src/main/Application.js b/src/main/Application.jsindex 1556cde0..1c1966bc 100644--- a/src/main/Application.js+++ b/src/main/Application.js@@ -115,6 +115,7 @@ export default class Application extends EventEmitter {stop () {this.engine.stop()this.energyManager.stopPowerSaveBlocker()+ this.trayManager.destroy()}sendCommand (command, ...args) {diff --git a/src/main/ui/TrayManager.js b/src/main/ui/TrayManager.jsindex f429ba0c..4b0de055 100644--- a/src/main/ui/TrayManager.js+++ b/src/main/ui/TrayManager.js@@ -112,4 +112,8 @@ export default class TrayManager extends EventEmitter {this.updateIcon()}++ destroy () {+ tray.destroy()+ }}