GNOME Bugzilla – Bug 781348
The label "Done (X)" is converted to "Done (0)" when clicking back_button
Last modified: 2017-04-21 12:46:45 UTC
How to reproduce: 1) Choose any task list (the default one is "Personal" with blue color) 2) You should have in this list more than 0 finished tasks, then at bottom you will have the label like "Done (3)" 3) Click back_button at the bottom left corner 4) A few moments this label will look as "Done (0)", right after clicking
Created attachment 349893 [details] [review] Patch
Review of attachment 349893 [details] [review]: Thanks for the patch. I believe the correct solution for this issue is to make gtd_task_list_view__update_done_label() correctly generate the label instead (i.e. if view->priv->complete_tasks == 0, it prints "%s", otherwise it prints "%s (%d)")
Created attachment 350147 [details] [review] Patch
Review of attachment 350147 [details] [review]: Nice! Two nitpicks: - The commit title needs improvement. In To Do, the commit title is formatted like: "module-name: description of the task" - No need for two lines (see below) ::: src/gtd-task-list-view.c @@ +777,3 @@ + { + new_label = g_strdup_printf ("%s", + _("Done")); Nitpick: should be one line only.
Created attachment 350149 [details] [review] Changed patch
Review of attachment 350149 [details] [review]: Looks good!
Thanks for the patch! Attachment 350149 [details] pushed as 3fdaa02 - task-list-view: replaced "Done (0)" with "Done" in the done_label