fix(pomodoro): ctrl+r resets rounds + both clocks (#83)

This commit is contained in:
Jens Krause
2025-05-20 10:01:29 +02:00
committed by GitHub
parent 5f4c5bb8ed
commit d27587a44a
3 changed files with 16 additions and 5 deletions

View File

@@ -158,12 +158,12 @@ impl StatefulWidget for Footer {
}
spans.extend_from_slice(&[
Span::from(SPACE),
Span::from("[r]eset"),
Span::from("[r]eset clock"),
]);
if self.selected_content == Content::Pomodoro {
spans.extend_from_slice(&[
Span::from(SPACE),
Span::from("[^r]eset round"),
Span::from("[^r]eset clocks+rounds"),
]);
}
spans