This commit is contained in:
1 parent
3ae2aa4432
commit
64ea72de89
3 files changed
+19
-14
No files matched your search
@@ -419,20 +419,24 @@ class _TaskListPageState extends State<TaskListPage> {
|
||||
}
|
||||
|
||||
bool isTaskActive(int index) {
|
||||
var currentTaskInfo = _taskList[index];
|
||||
if (!widget.readOnly) {
|
||||
var currentTaskInfo = _taskList[index];
|
||||
|
||||
if (currentTaskInfo.completed && !currentTaskInfo.task.reenter!) return false;
|
||||
if (currentTaskInfo.completed && !currentTaskInfo.task.reenter!) return false;
|
||||
|
||||
for (var taskInfo in _taskList)
|
||||
{
|
||||
if (taskInfo == currentTaskInfo) break;
|
||||
for (var taskInfo in _taskList)
|
||||
{
|
||||
if (taskInfo == currentTaskInfo) break;
|
||||
|
||||
if (!taskInfo.task.opt! && !taskInfo.completed) return false;
|
||||
if (!taskInfo.task.opt! && !taskInfo.completed) return false;
|
||||
}
|
||||
|
||||
if (currentTaskInfo.task.reenter!) return true;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
if (currentTaskInfo.task.reenter!) return true;
|
||||
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
_sendArrivedMessage(TaskInfo taskInfo) {
|
||||
|
||||
Reference in new issue
Block a user