summaryrefslogtreecommitdiff
path: root/src/app_state.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/app_state.rs')
-rw-r--r--src/app_state.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/app_state.rs b/src/app_state.rs
index 7540181..c399842 100644
--- a/src/app_state.rs
+++ b/src/app_state.rs
@@ -212,6 +212,11 @@ impl AppState {
}
#[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]
}