mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-11 07:04:33 +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
|
# Inbound Events
|
||||||
|
|
||||||
_onUpdateAccount: (id, updated) =>
|
_onUpdateAccount: (id, updated) =>
|
||||||
return unless NylasEnv.isMainWindow()
|
|
||||||
idx = _.findIndex @_accounts, (a) -> a.id is id
|
idx = _.findIndex @_accounts, (a) -> a.id is id
|
||||||
account = @_accounts[idx]
|
account = @_accounts[idx]
|
||||||
return if !account or _.isEqual(account, updated)
|
return unless account
|
||||||
account = _.extend(account, updated)
|
account = _.extend(account, updated)
|
||||||
@_caches = {}
|
@_caches = {}
|
||||||
@_accounts[idx] = account
|
@_accounts[idx] = account
|
||||||
|
|
Loading…
Add table
Reference in a new issue