Navigated back handing base

This commit is contained in:
2026-08-06 23:20:14 +03:00
parent c34b43a800
commit 0d9aaaea24
13 changed files with 41 additions and 1 deletions
+8 -1
View File
@@ -58,6 +58,10 @@ impl NavigatedPage<RepetitionsMessage> for RepetitionsState {
None
}
}
fn navigated(&mut self) {
self.selected_set = None;
}
}
impl RepetitionsState {
@@ -273,9 +277,12 @@ impl RepetitionsState {
if let Some(history) = history {
for (date, activity) in history {
let distance = *date - now;
let distance = now - *date;
let index = counts.len() as i64 - distance.num_days() - 1;
if index == 210 {
println!("invalid index")
}
if index < 0 {
continue;
}