fix(main): more intuitive behavior when stopping tracking with stamp

This commit is contained in:
xeruf 2024-08-19 21:55:44 +03:00
parent f4cff3d702
commit 1b0f7dca09
1 changed files with 7 additions and 4 deletions

View File

@ -473,10 +473,13 @@ async fn main() {
}
Some(')') => {
tasks.move_to(None);
if let Some(arg) = arg {
if !tasks.track_from(arg) {
continue;
match arg {
None => tasks.move_to(None),
Some(arg) => {
if parse_tracking_stamp(arg).map(|stamp| tasks.track_at(stamp, None)).is_none() {
// So the error message is not covered up
continue
}
}
}
}