We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61d3261 commit 326bea5Copy full SHA for 326bea5
src/app.rs
@@ -12,7 +12,7 @@ use shortcut::Shortcuts;
12
use std::{
13
hash::{DefaultHasher, Hash, Hasher},
14
path::PathBuf,
15
- sync::{Arc, Mutex},
+ sync::{Arc, LazyLock, Mutex},
16
};
17
18
mod data;
@@ -775,7 +775,9 @@ impl eframe::App for LogViewerApp {
775
776
egui::CentralPanel::default().show(ctx, |ui| {
777
// The central panel the region left after adding TopPanel's and SidePanel's
778
- ui.heading("Log Viewer");
+ static HEADING: LazyLock<&'static str> =
779
+ LazyLock::new(|| format!("Log Viewer {}", env!("CARGO_PKG_VERSION")).leak());
780
+ ui.heading(*HEADING);
781
ui.separator();
782
self.ui_loading(ui);
783
0 commit comments