Refactor task handling
This commit is contained in:
parent
6363afac84
commit
4b3d84f509
1 changed files with 3 additions and 5 deletions
|
@ -306,13 +306,11 @@ Do you want to change the state? (Esc to cancel)",
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.next()
|
.next()
|
||||||
{
|
{
|
||||||
|
let description = print_task(self.cache.get(&uuid).chain_err(|| "uuid miss")?);
|
||||||
match self.dialog.select_option(
|
match self.dialog.select_option(
|
||||||
format!(
|
format!(
|
||||||
"You are currently working on {}
|
"You are currently working on\n{}\nWhat's the progress?",
|
||||||
What's the progress?",
|
description
|
||||||
print_task(
|
|
||||||
self.cache.get(&uuid).chain_err(|| "uuid miss")?,
|
|
||||||
)
|
|
||||||
),
|
),
|
||||||
vec![
|
vec![
|
||||||
("Continue: I'll get back to it", "continue"),
|
("Continue: I'll get back to it", "continue"),
|
||||||
|
|
Loading…
Reference in a new issue