fix issue where removing account could prevent application from starting
This commit is contained in:
parent
475e3a4210
commit
af8967261e
|
@ -136,7 +136,7 @@ class Settings {
|
|||
await identities[key]!.delete();
|
||||
identities.remove(key);
|
||||
if (identities.isNotEmpty) {
|
||||
activeIdentity = identities.keys.first;
|
||||
await saveActiveIdentity(identities.keys.first);
|
||||
}
|
||||
return await prefs.setStringList(
|
||||
identitiesKey,
|
||||
|
|
Loading…
Reference in New Issue