mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-22 23:23:54 +08:00
PreferencesStore pull current account from FocusedPerspective
This commit is contained in:
parent
9b9be76ccd
commit
05a7b7eb3b
1 changed files with 4 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
_ = require 'underscore'
|
||||
NylasStore = require 'nylas-store'
|
||||
AccountStore = require './account-store'
|
||||
FocusedPerspectiveStore = require './focused-perspective-store'
|
||||
Actions = require '../actions'
|
||||
Immutable = require 'immutable'
|
||||
|
||||
|
@ -13,10 +13,12 @@ class TabItem
|
|||
|
||||
class PreferencesUIStore extends NylasStore
|
||||
constructor: ->
|
||||
perspective = FocusedPerspectiveStore.current()
|
||||
|
||||
@_tabs = Immutable.List()
|
||||
@_selection = Immutable.Map({
|
||||
tabId: null
|
||||
accountId: AccountStore.accounts()[0].accountId
|
||||
accountId: perspective?.account?.id
|
||||
})
|
||||
|
||||
@_triggerDebounced ?= _.debounce(( => @trigger()), 20)
|
||||
|
|
Loading…
Reference in a new issue