mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-26 03:07:18 +02:00
Add error message support to task done
This commit is contained in:
parent
ed3180ef2d
commit
b706f34b53
2 changed files with 14 additions and 10 deletions
|
@ -54,7 +54,13 @@ fn main() -> Result<(), Box<dyn Error>> {
|
|||
Key::Char('r') => app.update(),
|
||||
Key::Down | Key::Char('j') => app.next(),
|
||||
Key::Up | Key::Char('k') => app.previous(),
|
||||
Key::Char('d') => app.task_done(),
|
||||
Key::Char('d') => match app.task_done() {
|
||||
Ok(_) => (),
|
||||
Err(e) => {
|
||||
app.mode = AppMode::TaskError;
|
||||
app.error = e;
|
||||
}
|
||||
},
|
||||
Key::Char('x') => match app.task_delete() {
|
||||
Ok(_) => (),
|
||||
Err(e) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue