mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-10-02 09:24:45 +08:00
fix(accounts): Any account update triggered focus #2165
This commit is contained in:
parent
eab8cb9085
commit
1b0e933977
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ class AccountStore extends NylasStore
|
||||||
oldAccountIds = _.pluck(@_accounts, 'id')
|
oldAccountIds = _.pluck(@_accounts, 'id')
|
||||||
@_loadAccounts()
|
@_loadAccounts()
|
||||||
newAccountIds = _.pluck(@_accounts, 'id')
|
newAccountIds = _.pluck(@_accounts, 'id')
|
||||||
newAccountIds = _.without(newAccountIds, oldAccountIds)
|
newAccountIds = _.difference(newAccountIds, oldAccountIds)
|
||||||
|
|
||||||
if newAccountIds.length > 0
|
if newAccountIds.length > 0
|
||||||
Actions.focusDefaultMailboxPerspectiveForAccounts([newAccountIds[0]])
|
Actions.focusDefaultMailboxPerspectiveForAccounts([newAccountIds[0]])
|
||||||
|
|
Loading…
Add table
Reference in a new issue