| commit d6d7962221054204361e29cdaac2e66984a5c3eb parent 3a6429990ef360ddc4ae6df626181f656590d55a Author: sqzer-x <110329244+sqzer-x@users.noreply.github.com> Date: Sat, 1 Aug 2026 17:32:26 +0900 Read the About box version from Cargo.toml It was a literal, so it would have kept claiming 0.1.0 after the next version bump. Diffstat:
|
| 1 file changed, 3 insertion(+), 1 deletion(-) |
diff --git a/src/ui/widgets/about_modal.rs b/src/ui/widgets/about_modal.rs @@ -202,7 +202,9 @@ pub fn render_about_modal(frame: &mut Frame, area: Rect, _theme: &Theme) { .add_modifier(Modifier::BOLD); let value_style = Style::default().fg(NEON_CYAN).bg(BG_DARK); - for (label, value) in &[("Version", "0.1.0"), ("License", "MIT")] { + // Read from Cargo.toml rather than a literal, so the About box cannot claim + // a version the build is not. + for (label, value) in &[("Version", env!("CARGO_PKG_VERSION")), ("License", "MIT")] { if cur_y < inner.y + inner.height { let lbl = format!(" {:12}", label); let val = *value; |