mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-24 16:14:01 +08:00
fix(account-store): Allow updateAccount in all windows
This commit is contained in:
parent
be3b795811
commit
6d01120558
1 changed files with 1 additions and 2 deletions
|
@ -80,10 +80,9 @@ class AccountStore extends NylasStore
|
|||
# Inbound Events
|
||||
|
||||
_onUpdateAccount: (id, updated) =>
|
||||
return unless NylasEnv.isMainWindow()
|
||||
idx = _.findIndex @_accounts, (a) -> a.id is id
|
||||
account = @_accounts[idx]
|
||||
return if !account or _.isEqual(account, updated)
|
||||
return unless account
|
||||
account = _.extend(account, updated)
|
||||
@_caches = {}
|
||||
@_accounts[idx] = account
|
||||
|
|
Loading…
Reference in a new issue