[gnome-todo] background: don't count completed tasks
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-todo] background: don't count completed tasks
- Date: Sat, 22 Apr 2017 14:11:30 +0000 (UTC)
commit 693cd49e65b5430838f30bf041f423b79f0b2a91
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri Apr 21 21:44:04 2017 -0300
background: don't count completed tasks
plugins/background/gtd-plugin-background.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/plugins/background/gtd-plugin-background.c b/plugins/background/gtd-plugin-background.c
index 703b6ca..8e0677e 100644
--- a/plugins/background/gtd-plugin-background.c
+++ b/plugins/background/gtd-plugin-background.c
@@ -196,10 +196,9 @@ get_tasks_for_today (guint *n_events)
due_date = gtd_task_get_due_date (t->data);
- if (!due_date || !is_today (now, due_date))
+ if (!due_date || !is_today (now, due_date) || gtd_task_get_complete (t->data))
continue;
-
n_tasks += 1;
result = g_list_prepend (result, t->data);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]