1
0
Fork 0

Refactor task handling

This commit is contained in:
Malte Brandy 2018-06-22 23:25:47 +02:00
parent 6363afac84
commit 4b3d84f509
No known key found for this signature in database
GPG key ID: 226A2D41EF5378C9

View file

@ -306,13 +306,11 @@ Do you want to change the state? (Esc to cancel)",
.into_iter()
.next()
{
let description = print_task(self.cache.get(&uuid).chain_err(|| "uuid miss")?);
match self.dialog.select_option(
format!(
"You are currently working on {}
What's the progress?",
print_task(
self.cache.get(&uuid).chain_err(|| "uuid miss")?,
)
"You are currently working on\n{}\nWhat's the progress?",
description
),
vec![
("Continue: I'll get back to it", "continue"),