fix(zoom): Don't zoom the onboarding window

This commit is contained in:
Ben Gotow 2016-02-01 10:49:34 -08:00
parent 5ac5b55f53
commit db1cd95a64

View file

@ -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()