fix(workspace): Remember whether sidebar is hidden #190

This commit is contained in:
Ben Gotow 2015-10-26 10:51:30 -07:00
parent 2ddfb1595a
commit c7cf2f1e18

View file

@ -51,7 +51,7 @@ class WorkspaceStore extends NylasStore
@SidebarItem = WorkspaceSidebarItem
@SidebarItems = SidebarItems = {}
@_hiddenLocations = {}
@_hiddenLocations = atom.config.get('core.workspace.hiddenLocations') || {}
@_sheetStack = []
if atom.isMainWindow()
@ -86,6 +86,9 @@ class WorkspaceStore extends NylasStore
delete @_hiddenLocations[location.id]
else
@_hiddenLocations[location.id] = location
atom.config.set('core.workspace.hiddenLocations', @_hiddenLocations)
@trigger(@)
_onSetFocus: ({collection, item}) =>