Show file link on reset command

This commit is contained in:
mo8it
2026-04-06 23:29:59 +02:00
parent f403d9e1b6
commit 695f927893
3 changed files with 10 additions and 7 deletions
+2 -4
View File
@@ -334,12 +334,10 @@ impl AppState {
Ok(())
}
pub fn reset_current_exercise(&mut self) -> Result<&str> {
pub fn reset_current_exercise(&mut self) -> Result<()> {
self.set_pending(self.current_exercise_ind)?;
let exercise = self.current_exercise();
self.reset(self.current_exercise_ind, exercise.path)?;
Ok(exercise.path)
self.reset(self.current_exercise_ind, exercise.path)
}
// Reset the exercise by index and return its name.