1
0
Fork 0

Kassandra: Less optionals per day, nicer end-dialog

This commit is contained in:
Malte Brandy 2018-07-20 02:45:05 +02:00
parent 6310c247d4
commit c53f33fdd5
No known key found for this signature in database
GPG key ID: 226A2D41EF5378C9

View file

@ -946,7 +946,7 @@ Do you want to change the state? (Esc to cancel)",
self.priority_check(&uuid, priority)?;
if priority.0 == PS::Optional {
count += 1;
if count > 10 {
if count > 2 {
return Ok(());
}
}
@ -1098,7 +1098,15 @@ Do you want to change the state? (Esc to cancel)",
options.chain(tasks).collect::<Vec<_>>()
};
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?");