diff --git a/jslib/electron/src/tray.main.ts b/jslib/electron/src/tray.main.ts index ca2e53ddd..2854bc5b8 100644 --- a/jslib/electron/src/tray.main.ts +++ b/jslib/electron/src/tray.main.ts @@ -60,9 +60,8 @@ export class TrayMain { } setupWindowListeners(win: BrowserWindow) { - win.on("minimize", async (e: Event) => { + win.on("minimize", async () => { if (await this.stateService.getEnableMinimizeToTray()) { - e.preventDefault(); this.hideToTray(); } }); diff --git a/package-lock.json b/package-lock.json index 099ff554f..f151050f1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -67,7 +67,7 @@ "cross-env": "7.0.3", "css-loader": "7.1.2", "dotenv": "16.4.5", - "electron": "28.3.3", + "electron": "33.2.0", "electron-builder": "24.13.3", "electron-log": "5.2.0", "electron-reload": "2.0.0-alpha.1", @@ -10025,15 +10025,15 @@ } }, "node_modules/electron": { - "version": "28.3.3", - "resolved": "https://registry.npmjs.org/electron/-/electron-28.3.3.tgz", - "integrity": "sha512-ObKMLSPNhomtCOBAxFS8P2DW/4umkh72ouZUlUKzXGtYuPzgr1SYhskhFWgzAsPtUzhL2CzyV2sfbHcEW4CXqw==", + "version": "33.2.0", + "resolved": "https://registry.npmjs.org/electron/-/electron-33.2.0.tgz", + "integrity": "sha512-PVw1ICAQDPsnnsmpNFX/b1i/49h67pbSPxuIENd9K9WpGO1tsRaQt+K2bmXqTuoMJsbzIc75Ce8zqtuwBPqawA==", "dev": true, "hasInstallScript": true, "license": "MIT", "dependencies": { "@electron/get": "^2.0.0", - "@types/node": "^18.11.18", + "@types/node": "^20.9.0", "extract-zip": "^2.0.1" }, "bin": { @@ -10279,23 +10279,6 @@ "node": ">=10" } }, - "node_modules/electron/node_modules/@types/node": { - "version": "18.19.55", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.55.tgz", - "integrity": "sha512-zzw5Vw52205Zr/nmErSEkN5FLqXPuKX/k5d1D7RKHATGqU7y6YfX9QxZraUzUrFGqH6XzOzG196BC35ltJC4Cw==", - "dev": true, - "license": "MIT", - "dependencies": { - "undici-types": "~5.26.4" - } - }, - "node_modules/electron/node_modules/undici-types": { - "version": "5.26.5", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", - "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", - "dev": true, - "license": "MIT" - }, "node_modules/emittery": { "version": "0.13.1", "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz", diff --git a/package.json b/package.json index 2c6eecf0b..09b460c6f 100644 --- a/package.json +++ b/package.json @@ -98,7 +98,7 @@ "cross-env": "7.0.3", "css-loader": "7.1.2", "dotenv": "16.4.5", - "electron": "28.3.3", + "electron": "33.2.0", "electron-builder": "24.13.3", "electron-log": "5.2.0", "electron-reload": "2.0.0-alpha.1",