mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Documentation
- Modified the wording of the output of the undo command.
This commit is contained in:
parent
d00b57ec65
commit
484c31f0e4
1 changed files with 10 additions and 8 deletions
18
src/TDB.cpp
18
src/TDB.cpp
|
@ -796,13 +796,13 @@ void TDB::undo ()
|
||||||
table.setColumnJustification (1, Table::left);
|
table.setColumnJustification (1, Table::left);
|
||||||
|
|
||||||
int row = table.addRow ();
|
int row = table.addRow ();
|
||||||
table.addCell (row, 0, "--- before");
|
table.addCell (row, 0, "--- previous state");
|
||||||
table.addCell (row, 1, "Previous state that undo will restore");
|
table.addCell (row, 1, "Undo will restore this state");
|
||||||
table.setRowColor (row, color_red);
|
table.setRowColor (row, color_red);
|
||||||
|
|
||||||
row = table.addRow ();
|
row = table.addRow ();
|
||||||
table.addCell (row, 0, "+++ after "); // Note trailing space.
|
table.addCell (row, 0, "+++ current state "); // Note trailing space.
|
||||||
table.addCell (row, 1, "Change made: " + lastChange.toStringWithTime (context.config.get ("dateformat")));
|
table.addCell (row, 1, "Change made " + lastChange.toStringWithTime (context.config.get ("dateformat")));
|
||||||
table.setRowColor (row, color_green);
|
table.setRowColor (row, color_green);
|
||||||
|
|
||||||
table.addRow ();
|
table.addRow ();
|
||||||
|
@ -841,9 +841,11 @@ void TDB::undo ()
|
||||||
if (*a == "uuid" ||
|
if (*a == "uuid" ||
|
||||||
before_att == after_att)
|
before_att == after_att)
|
||||||
{
|
{
|
||||||
row = table.addRow ();
|
// Show nothing - no point displaying that which did not change.
|
||||||
table.addCell (row, 0, *a + ":");
|
|
||||||
table.addCell (row, 1, before_att);
|
// row = table.addRow ();
|
||||||
|
// table.addCell (row, 0, *a + ":");
|
||||||
|
// table.addCell (row, 1, before_att);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Attribute deleted.
|
// Attribute deleted.
|
||||||
|
@ -894,7 +896,7 @@ void TDB::undo ()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Output displayed, now confirm.
|
// Output displayed, now confirm.
|
||||||
if (!confirm ("The undo command is not reversible. Are you sure you want to undo the last update?"))
|
if (!confirm ("The undo command is not reversible. Are you sure you want to revert to the previous state?"))
|
||||||
throw std::string ("No changes made.");
|
throw std::string ("No changes made.");
|
||||||
|
|
||||||
// Extract identifying uuid.
|
// Extract identifying uuid.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue