fix(account-store): Update focused perspective after triggering

- This prevents account store changes from propagating in the incorrect
  order
This commit is contained in:
Juan Tejada 2016-02-16 17:26:45 -08:00
parent 8f6dff7da8
commit 139f25e12f

View file

@ -75,8 +75,8 @@ class AccountStore extends NylasStore
ipc = require('electron').ipcRenderer
ipc.send('command', 'application:reset-config-and-relaunch')
else
Actions.focusDefaultMailboxPerspectiveForAccounts(@_accounts)
@trigger()
Actions.focusDefaultMailboxPerspectiveForAccounts(@_accounts)
_onReorderAccount: (id, newIdx) =>
existingIdx = _.findIndex @_accounts, (a) -> a.id is id