chore: Fixed issue where app would not launch correctly when using AppImage on Linux

This commit is contained in:
Aman Harwara
2023-08-07 16:54:18 +05:30
parent e4258a3e12
commit a87d3c71f3

View File

@@ -6,7 +6,9 @@ export function initializeZoomManager(window: BrowserWindow, store: Store): void
window.webContents.on('dom-ready', () => {
const zoomFactor = store.get(StoreKeys.ZoomFactor)
if (zoomFactor) {
window.webContents.zoomFactor = zoomFactor
window.once('ready-to-show', () => {
window.webContents.zoomFactor = zoomFactor
})
}
})