Feedback: Sync message now indicates how many local changes will be synced

This commit is contained in:
Paul Beckingham
2017-02-28 00:10:15 -05:00
parent 46ef672317
commit 4a5dfad74d
12 changed files with 18 additions and 15 deletions

View File

@@ -415,15 +415,14 @@ void feedback_backlog ()
if (context.config.get ("taskd.server") != "" &&
context.verbose ("sync"))
{
int count = 0;
std::vector <std::string> lines = context.tdb2.backlog.get_lines ();
for (auto& line : lines)
{
if ((line)[0] == '{')
{
context.footnote (STRING_FEEDBACK_BACKLOG);
break;
}
}
++count;
if (count)
context.footnote (format (STRING_FEEDBACK_BACKLOG, count));
}
}