Instead of passing in user config and data base dirs to the Engine from the app, then pulling them out from the engine again from the app, just store them in AccountManager, since that's where they are needed. * src/client/accounts/account-manager.vala (AccountManager): Store user config and data base dirs directly rather than getting them from the engine. Split account directory creation out into a separate method so they aren't re-made every time the config is saved. * src/engine/api/geary-engine.vala (Engine): Remove user config and data dir properties and open_async args. Update call sites and unit tests. * src/client/application/geary-controller.vala (GearyController): Chase AccountManager and Engine API changes. Ensure account dirs are created when an new account is added. * src/engine/api/geary-account-information.vala (AccountInformation): Explicitly track copies rather relying on account dirs being null. Don't require dirs be set in the default ctor, since they won't be known, provide a method for updating them later on instead. |
||
|---|---|---|
| .. | ||
| account-processor-test.vala | ||