mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-14 13:44:41 +08:00
7ca04c579e
- This fixes #1354 and #1235 - This issue was caused because the account details preferences component was keeping as state all of the account object fields. `setState` works like `extend`, so when the account changed, state was set to the new set of account fields, but the old values were only removed if they were overriden, and remained the same if the field did not exist in the new state object. Specifically, when a new account was added, setState was called with `{..., defaultAlias: undefined}` which did /not/ remove the the defaultAlias from the previous state. - Switched to managing state with a top level key `account` |
||
---|---|---|
.. | ||
config-schema-item.cjsx | ||
preferences-account-details.jsx | ||
preferences-account-list.jsx | ||
preferences-accounts.cjsx | ||
preferences-general.cjsx | ||
preferences-keymaps.cjsx | ||
preferences-mail-rules.cjsx | ||
sending-section.cjsx | ||
workspace-section.cjsx |