Remove reliance on persistent Account objects across boundaries. If you open an account persister, then dispose of it

This commit is contained in:
Robert McRackan 2020-08-27 23:05:46 -04:00
parent 20b6f28cb5
commit 60f1d8117d
11 changed files with 42 additions and 39 deletions

View file

@ -162,7 +162,8 @@ namespace LibationLauncher
};
// saves to new file
AudibleApiStorage.GetPersistentAccountsSettings().Add(account);
using var persister = AudibleApiStorage.GetAccountsSettingsPersister();
persister.AccountsSettings.Add(account);
return account;
}