Compare commits

..

1 commit

Author SHA1 Message Date
a2cd391827 fix(repo): avoid blocking threads when pausing
Some checks failed
ci/woodpecker/push/push-next Pipeline was successful
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/tag-created Pipeline was successful
Rust / build (push) Failing after 5m6s
2024-08-31 07:03:58 +01:00

View file

@ -40,15 +40,6 @@ impl State {
*tick += 1; *tick += 1;
} }
} }
fn beating_heart(&self) -> String {
if self.last_update.duration_since(self.started).as_secs() % 2 == 0 {
"💚 "
} else {
" 💚"
}
.to_string()
}
} }
#[derive(Clone, Debug, PartialEq, Eq)] #[derive(Clone, Debug, PartialEq, Eq)]
@ -335,8 +326,11 @@ impl StatefulWidget for &State {
.title( .title(
Title::from(Line::from(vec![ Title::from(Line::from(vec![
" [q]uit ".into(), " [q]uit ".into(),
self.beating_heart().into(), format!(
" ".into(), "{}s ",
self.last_update.duration_since(self.started).as_secs()
)
.into(),
])) ]))
.alignment(Alignment::Center) .alignment(Alignment::Center)
.position(ratatui::widgets::block::Position::Bottom), .position(ratatui::widgets::block::Position::Bottom),