fix: is available condiction in processLocals˜
This commit is contained in:
parent
d18bc6e1f3
commit
88715e8dd6
|
@ -87,7 +87,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;
|
||||
final bool isAvailable = StorageUtil().cliUUID.isNotEmpty && StorageUtil().cliName.isNotEmpty;
|
||||
|
||||
|
||||
|
||||
|
@ -131,11 +131,14 @@ class LocalizationService {
|
|||
} else if (isSelected) {
|
||||
log('() => isSelected');
|
||||
return await processData(context);
|
||||
} else if (isAvailable) {
|
||||
log('() => isAvailable');
|
||||
return await processData(context);
|
||||
} else {
|
||||
log('() => else');
|
||||
await StorageUtil().ensureInitialization();
|
||||
return await selectLocal(context);
|
||||
}
|
||||
}
|
||||
} catch (e, s) {
|
||||
log('() => stack: $s');
|
||||
log('() => catch: $e', stackTrace: s);
|
||||
|
|
Loading…
Reference in New Issue