Skip to content

Commit

Permalink
fix: reset zoom factor when closing website window
Browse files Browse the repository at this point in the history
  • Loading branch information
mtdvlpr committed Dec 5, 2024
1 parent 6c8b196 commit ae3902d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,6 @@
"vitepress": "^1.5.0",
"vue-tsc": "^2.1.10"
},
"resolutions": {
"canvas": "npm:[email protected]"
},
"browserslist": [
"Electron >= 33"
],
Expand Down
1 change: 0 additions & 1 deletion src-electron/electron-preload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
1 change: 1 addition & 0 deletions src-electron/main/window/window-website.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ export async function createWebsiteWindow(lang?: string) {
);

websiteWindow.on('close', () => {
websiteWindow?.webContents.setZoomFactor(1);
sendToWindow(mainWindow, 'websiteWindowClosed');
});
websiteWindow.on('closed', () => {
Expand Down

0 comments on commit ae3902d

Please sign in to comment.