From ae3902df108524500d4103b6ed67012f6acf0d2b Mon Sep 17 00:00:00 2001 From: Manoah Tervoort <149895ja@gmail.com> Date: Thu, 5 Dec 2024 14:14:59 +0100 Subject: [PATCH] fix: reset zoom factor when closing website window --- package.json | 3 --- src-electron/electron-preload.ts | 1 - src-electron/main/window/window-website.ts | 1 + 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/package.json b/package.json index 8afbdd3eb5..c02de65e82 100644 --- a/package.json +++ b/package.json @@ -99,9 +99,6 @@ "vitepress": "^1.5.0", "vue-tsc": "^2.1.10" }, - "resolutions": { - "canvas": "npm:empty-npm-package@1.0.0" - }, "browserslist": [ "Electron >= 33" ], diff --git a/src-electron/electron-preload.ts b/src-electron/electron-preload.ts index bc28098eaa..9611c9470e 100644 --- a/src-electron/electron-preload.ts +++ b/src-electron/electron-preload.ts @@ -16,7 +16,6 @@ import { getVideoDuration, parseMediaFile, pathToFileURL, - // readDirectory, } from './preload/fs'; import { invoke, listen, removeAllIpcListeners, send } from './preload/ipc'; import { initScreenListeners } from './preload/screen'; diff --git a/src-electron/main/window/window-website.ts b/src-electron/main/window/window-website.ts index 16c2d1409a..4dfac15d2b 100644 --- a/src-electron/main/window/window-website.ts +++ b/src-electron/main/window/window-website.ts @@ -133,6 +133,7 @@ export async function createWebsiteWindow(lang?: string) { ); websiteWindow.on('close', () => { + websiteWindow?.webContents.setZoomFactor(1); sendToWindow(mainWindow, 'websiteWindowClosed'); }); websiteWindow.on('closed', () => {