[gnome-todo] todoist: Also update depth when recalculating position
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-todo] todoist: Also update depth when recalculating position
- Date: Sat, 3 Mar 2018 03:28:20 +0000 (UTC)
commit d29c674d3f19819ec66cd686ab15622e2c5e4ff4
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Sat Mar 3 00:27:21 2018 -0300
todoist: Also update depth when recalculating position
Not doing so can make the subtask relationships potentially
wrong.
plugins/todoist/gtd-provider-todoist.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/plugins/todoist/gtd-provider-todoist.c b/plugins/todoist/gtd-provider-todoist.c
index 7cfb258..cce23b2 100644
--- a/plugins/todoist/gtd-provider-todoist.c
+++ b/plugins/todoist/gtd-provider-todoist.c
@@ -893,11 +893,13 @@ update_task_position (GtdProviderTodoist *self,
" \"uuid\": \"%s\", \n"
" \"args\": { \n"
" \"id\": %s, \n"
+ " \"indent\": %d, \n"
" \"item_order\": %ld \n"
" } \n"
"}",
command_uid,
gtd_object_get_uid (GTD_OBJECT (t)),
+ gtd_task_get_depth (t) + 1,
i);
schedule_post_request (self, t, REQUEST_TASK_UPDATE, command_uid, command);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]