mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-22 00:06:06 +08:00
fix(workspace): Remember whether sidebar is hidden #190
This commit is contained in:
parent
2ddfb1595a
commit
c7cf2f1e18
|
@ -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}) =>
|
||||
|
|
Loading…
Reference in a new issue