move canSend function from igcController to choreographer
This commit is contained in:
parent
f4c0637f83
commit
01f07c5584
1 changed files with 0 additions and 14 deletions
|
|
@ -192,18 +192,4 @@ class IgcController {
|
|||
// Not sure why this is here
|
||||
// MatrixState.pAnyState.closeOverlay();
|
||||
}
|
||||
|
||||
bool get canSendMessage {
|
||||
if (choreographer.isFetching) return false;
|
||||
if (igcTextData == null ||
|
||||
choreographer.errorService.isError ||
|
||||
igcTextData!.matches.isEmpty) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return !((choreographer.itEnabled &&
|
||||
igcTextData!.matches.any((match) => match.isITStart)) ||
|
||||
(choreographer.igcEnabled &&
|
||||
igcTextData!.matches.any((match) => !match.isITStart)));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue