mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-22 07:03:31 +08:00
fix(workspace): Remember whether sidebar is hidden #190
This commit is contained in:
parent
abca03b13d
commit
6d7743ae93
1 changed files with 4 additions and 1 deletions
|
@ -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