aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordam <dam@gudinoff>2023-01-13 00:35:06 +0000
committerdam <dam@gudinoff>2023-01-13 00:35:06 +0000
commitd590a53cd9d6aa119bff0b65a6c23e15f99ad2ef (patch)
treeeeb235b4fe593dacce86ecc74be037abcf59e0bb
parent5bc5b7446435bfa91fe0bf54da883dd3bc57db5d (diff)
downloadtask-time-tracker-d590a53cd9d6aa119bff0b65a6c23e15f99ad2ef.tar.zst
task-time-tracker-d590a53cd9d6aa119bff0b65a6c23e15f99ad2ef.zip
Renamed unarchive operation to restore.
-rw-r--r--ttt.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ttt.c b/ttt.c
index 9c4e210..8b8a1ca 100644
--- a/ttt.c
+++ b/ttt.c
@@ -1319,7 +1319,7 @@ int main(int argc, char *argv[]) {
"\n"
"In app commands\n"
" a, A Archive selected task (except if active).\n"
- " u, U Unarchive selected task.\n"
+ " r, R Restore selected task from archive.\n"
" t, T Select currently active task (if any).\n"
" d, D Duplicate selected task.\n"
" n, N Create new task.\n"
@@ -1768,17 +1768,17 @@ int main(int argc, char *argv[]) {
break;
}
- case 'u':
- case 'U': {
+ case 'r':
+ case 'R': {
if (db != &archive || selected_task == NULL) {
break;
}
if (is_database_full(&database)) {
- read_enter_confirmation(selected_task_row, error_style, " Unable to unarchive entry: database is full. ");
+ read_enter_confirmation(selected_task_row, error_style, " Unable to restore entry: database is full. ");
break;
}
if (duplicate_task(&database, selected_task) == false) {
- print_error("Failed to unarchive entry.");
+ print_error("Failed to restore entry.");
break;
}
delete_task(&archive, selected_task);