mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-19 14:40:26 +08:00
Fix FocusedAccountStore: remove unnecessary accountstore listener
This commit is contained in:
parent
cffb3ad4a2
commit
0fd94c1e1e
1 changed files with 0 additions and 4 deletions
|
@ -11,7 +11,6 @@ class FocusedPerspectiveStore extends NylasStore
|
|||
@_current = @_defaultPerspective()
|
||||
|
||||
@listenTo CategoryStore, @_onCategoryStoreChanged
|
||||
@listenTo AccountStore, @_onAccountStoreChanged
|
||||
|
||||
@listenTo Actions.focusMailboxPerspective, @_onFocusPerspective
|
||||
@listenTo Actions.focusDefaultMailboxPerspectiveForAccounts, @_onFocusAccounts
|
||||
|
@ -20,9 +19,6 @@ class FocusedPerspectiveStore extends NylasStore
|
|||
|
||||
# Inbound Events
|
||||
|
||||
_onAccountStoreChanged: ->
|
||||
@_setupFastAccountMenu()
|
||||
|
||||
_onCategoryStoreChanged: ->
|
||||
if @_current.isEqual(MailboxPerspective.forNothing())
|
||||
@_setPerspective(@_defaultPerspective())
|
||||
|
|
Loading…
Reference in a new issue