added version number, fixed infinite update loop

This commit is contained in:
Uber Veng
2026-05-22 01:26:21 +07:00
parent 3fafc71cdd
commit b395df590e
6 changed files with 70 additions and 4 deletions

View File

@@ -48,7 +48,18 @@ fn render_menu(f: &mut Frame, app: &App, area: Rect) {
.collect();
let list = List::new(list_items)
.block(Block::default().borders(Borders::ALL).title("Меню"))
.block(
Block::default()
.borders(Borders::ALL)
.title(" Меню ")
.title(
Line::from(Span::styled(
format!(" v{} ", env!("CARGO_PKG_VERSION")),
Style::default().fg(Color::DarkGray),
))
.alignment(Alignment::Right),
),
)
.highlight_style(Style::default().add_modifier(Modifier::BOLD));
f.render_widget(list, area);
}