Call updateTask() when a task finishes to ensure the UI is updated.
Without this, the UI becomes out of date, for example not indicating that a task is complete and not showing the elapsed time.
@@ -47,6 +47,7 @@ final class TasksTreeConsoleBehaviour implements Behavior<TasksTreeConsoleModel>
}
void finishTask(Task task) {
+ updateTask(task);
if (task.getParent().isPresent()) {
return;
}
