Skip to content

Commit

Permalink
fix of #157
Browse files Browse the repository at this point in the history
  • Loading branch information
bardram committed Feb 12, 2024
1 parent 816cb36 commit 110bff0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lib/ui/pages/task_list_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,13 @@ class TaskListPageState extends State<TaskListPage> {
],
),
onTap: () {
userTask.hasWidget
? context.push('/task/${userTask.id}')
: userTask.onStart();
// only start if not already started, done, or expired
if (userTask.state == UserTaskState.enqueued ||
userTask.state == UserTaskState.canceled) {
userTask.hasWidget
? context.push('/task/${userTask.id}')
: userTask.onStart();
}
}),
),
);
Expand Down

0 comments on commit 110bff0

Please sign in to comment.