fix: add cenário não coberto pelo processLocals
This commit is contained in:
parent
a63a9d3f30
commit
5885b14ff9
|
@ -88,6 +88,7 @@ class LocalizationService {
|
|||
final bool isUnselected = StorageUtil().cliUUID.isEmpty && StorageUtil().cliName.isEmpty & StorageUtil().ownerUUID.isEmpty;
|
||||
final bool isSelected = StorageUtil().cliUUID.isNotEmpty && StorageUtil().cliName.isNotEmpty && isInactived;
|
||||
final bool isUnavailable = isPending && isUnselected && isUnique;
|
||||
final bool isAvailable = StorageUtil().cliUUID.isEmpty && StorageUtil().cliName.isEmpty;
|
||||
|
||||
|
||||
|
||||
|
@ -125,7 +126,7 @@ class LocalizationService {
|
|||
return await processData(context);
|
||||
|
||||
|
||||
} else if (isUnselected) {
|
||||
} else if (isUnselected || isAvailable) {
|
||||
log('() => isUnselected');
|
||||
return await selectLocal(context);
|
||||
} else if (isSelected) {
|
||||
|
@ -133,6 +134,7 @@ class LocalizationService {
|
|||
return await processData(context);
|
||||
} else {
|
||||
log('() => else');
|
||||
await StorageUtil().ensureInitialization();
|
||||
return await selectLocal(context);
|
||||
}
|
||||
} catch (e) {
|
||||
|
|
Loading…
Reference in New Issue