From 6d7743ae9364824b74bd8eb902db5bfbd7ce571b Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Mon, 26 Oct 2015 10:51:30 -0700 Subject: [PATCH] fix(workspace): Remember whether sidebar is hidden #190 --- src/flux/stores/workspace-store.coffee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/flux/stores/workspace-store.coffee b/src/flux/stores/workspace-store.coffee index 6018ab8a2..e69be15f4 100644 --- a/src/flux/stores/workspace-store.coffee +++ b/src/flux/stores/workspace-store.coffee @@ -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}) =>