mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 10:12:00 +08:00
fix(zoom): Don't zoom the onboarding window
This commit is contained in:
parent
5ac5b55f53
commit
db1cd95a64
1 changed files with 4 additions and 3 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue