1
0
Fork 0

Improve Inboxdialog

This commit is contained in:
Malte Brandy 2018-07-23 20:58:31 +02:00
parent ab34600ff6
commit ce3dd5c5f1
No known key found for this signature in database
GPG key ID: 226A2D41EF5378C9

View file

@ -869,7 +869,7 @@ Do you want to change the state? (Esc to cancel)",
)?);
match self.dialog.select_option(
format!(
"Handling Task: {}\nCan this be done in under 2 minutes?",
"New task in inbox\nCan this be done in under 2 minutes?\n{}",
task_name
),
vec![
@ -913,7 +913,10 @@ Do you want to change the state? (Esc to cancel)",
if needs_sorting(self.cache.get(uuid).chain_err(|| "unknown task")?) {
self.sort(uuid)?;
}
if !self.make_project(uuid)? {
if !(self.dialog.confirm("\nDoes this task have subtasks?\n")? &&
self.make_project(uuid)?)
{
if self.cache
.get(uuid)
.chain_err(|| "missing uuid")?