Improve check-all command

This commit is contained in:
mo8it
2024-10-13 22:02:41 +02:00
parent 685e069c58
commit 326169a7fa
4 changed files with 38 additions and 31 deletions
+5
View File
@@ -211,6 +211,11 @@ impl AppState {
self.n_done
}
#[inline]
pub fn n_pending(&self) -> u16 {
self.exercises.len() as u16 - self.n_done
}
#[inline]
pub fn current_exercise(&self) -> &Exercise {
&self.exercises[self.current_exercise_ind]