Skip to content

Commit

Permalink
additionally apply "zoomFactor" on "activateBrowserWindow" call, #233
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimiry committed Jan 22, 2020
1 parent 1d40f53 commit c56a997
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/electron-main/api/endpoints-builders/general.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ export async function buildEndpoints(
return;
}

const {window: {maximized}} = await ctx.configStore.readExisting();
const {window: {maximized}, zoomFactor} = await ctx.configStore.readExisting();

browserWindow.webContents.zoomFactor = zoomFactor;

if (maximized) {
browserWindow.maximize();
Expand Down

0 comments on commit c56a997

Please sign in to comment.