Fix account persistence edge case
This commit is contained in:
parent
dd25792864
commit
dd3b032b21
4 changed files with 27 additions and 8 deletions
|
|
@ -91,5 +91,7 @@ namespace InternalUtilities
|
|||
ArgumentValidator.EnsureNotNullOrWhiteSpace(accountId, nameof(accountId));
|
||||
AccountId = accountId.Trim();
|
||||
}
|
||||
|
||||
public override string ToString() => $"{AccountId} - {Locale?.Name ?? "[empty]"}";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -113,7 +113,9 @@ namespace InternalUtilities
|
|||
return false;
|
||||
|
||||
account.Updated -= update;
|
||||
return _accounts_backing.Remove(account);
|
||||
var result = _accounts_backing.Remove(account);
|
||||
update_no_validate();
|
||||
return result;
|
||||
}
|
||||
|
||||
private void validate(Account account)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue