add git commit hash when hovering version info

This commit is contained in:
2025-11-05 00:33:17 +00:00
parent e5e335f4f3
commit 4c00d1846b
2 changed files with 14 additions and 1 deletions
+2 -1
View File
@@ -236,7 +236,8 @@ impl App {
if cfg!(debug_assertions) {
ui.label("(dev)");
}
ui.label(format!("v{}", env!("CARGO_PKG_VERSION")));
ui.label(format!("v{}", env!("CARGO_PKG_VERSION")))
.on_hover_text(env!("LATEST_GIT_COMMIT_HASH"));
ui.scope(|ui| {
ui.style_mut().spacing.button_padding = egui::Vec2::new(3.0, 0.0);
let button = ui