From db1cd95a64616329e466563d8dce53ea1b44a0ac Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Mon, 1 Feb 2016 10:49:34 -0800 Subject: [PATCH] fix(zoom): Don't zoom the onboarding window --- src/flux/stores/workspace-store.coffee | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/flux/stores/workspace-store.coffee b/src/flux/stores/workspace-store.coffee index a8025e66d..05a8590e1 100644 --- a/src/flux/stores/workspace-store.coffee +++ b/src/flux/stores/workspace-store.coffee @@ -37,9 +37,10 @@ class WorkspaceStore extends NylasStore @popToRootSheet() @trigger() - NylasEnv.config.observe 'core.workspace.interfaceZoom', (zoom) => - if zoom and _.isNumber(zoom) - require('electron').webFrame.setZoomFactor(zoom) + {windowType} = NylasEnv.getLoadSettings() + unless windowType is 'onboarding' + NylasEnv.config.observe 'core.workspace.interfaceZoom', (z) => + require('electron').webFrame.setZoomFactor(z) if z and _.isNumber(z) NylasEnv.commands.add 'body', @_navigationCommands()