mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-21 15:42:19 +08:00
fix(draft-list): Revert regression for sheet selection
This commit is contained in:
parent
6a1bed23c1
commit
777ef33622
1 changed files with 6 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
import {WorkspaceStore, ComponentRegistry} from 'nylas-exports'
|
||||
import {WorkspaceStore, ComponentRegistry, Actions} from 'nylas-exports'
|
||||
import DraftList from './draft-list'
|
||||
import DraftListToolbar from './draft-list-toolbar'
|
||||
import DraftListSendStatus from './draft-list-send-status'
|
||||
|
@ -10,7 +10,11 @@ export function activate() {
|
|||
'Drafts',
|
||||
{root: true},
|
||||
{list: ['RootSidebar', 'DraftList']}
|
||||
)
|
||||
);
|
||||
if (NylasEnv.savedState.perspective &&
|
||||
NylasEnv.savedState.perspective.type === "DraftsMailboxPerspective") {
|
||||
Actions.selectRootSheet(WorkspaceStore.Sheet.Drafts);
|
||||
}
|
||||
|
||||
ComponentRegistry.register(DraftList, {location: WorkspaceStore.Location.DraftList})
|
||||
ComponentRegistry.register(DraftListToolbar, {location: WorkspaceStore.Location.DraftList.Toolbar})
|
||||
|
|
Loading…
Reference in a new issue