Remove reliance on persistent Account objects across boundaries. If you open an account persister, then dispose of it
This commit is contained in:
parent
20b6f28cb5
commit
60f1d8117d
11 changed files with 42 additions and 39 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue