Kassandra: Less optionals per day, nicer end-dialog
This commit is contained in:
parent
6310c247d4
commit
c53f33fdd5
1 changed files with 10 additions and 2 deletions
|
@ -946,7 +946,7 @@ Do you want to change the state? (Esc to cancel)",
|
||||||
self.priority_check(&uuid, priority)?;
|
self.priority_check(&uuid, priority)?;
|
||||||
if priority.0 == PS::Optional {
|
if priority.0 == PS::Optional {
|
||||||
count += 1;
|
count += 1;
|
||||||
if count > 10 {
|
if count > 2 {
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1098,7 +1098,15 @@ Do you want to change the state? (Esc to cancel)",
|
||||||
options.chain(tasks).collect::<Vec<_>>()
|
options.chain(tasks).collect::<Vec<_>>()
|
||||||
};
|
};
|
||||||
if empty {
|
if empty {
|
||||||
return self.show_priorities((PS::Medium, true));
|
let msg = format!("\nCongratulations! It seems you are done for today\n");
|
||||||
|
let options = vec![
|
||||||
|
("Yay! I'll leave it that way", false),
|
||||||
|
("Show me some more tasks", true),
|
||||||
|
];
|
||||||
|
if self.dialog.select_option(msg, options)? {
|
||||||
|
self.show_priorities((PS::Medium, true))?;
|
||||||
|
}
|
||||||
|
return Ok(());
|
||||||
};
|
};
|
||||||
let msg = format!("What do you want to do now?");
|
let msg = format!("What do you want to do now?");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue