fix(workspace): Pop to root sheet when switching view modes

This commit is contained in:
Ben Gotow 2015-09-09 14:27:18 -07:00
parent 229c5578f7
commit 21817887d6

View file

@ -30,6 +30,7 @@ class WorkspaceStore extends NylasStore
atom.config.observe 'core.workspace.mode', (mode) =>
return if mode is @_preferredLayoutMode
@_preferredLayoutMode = mode
@popToRootSheet()
@trigger()
atom.commands.add 'body',