Show version number in settings (#129)

This commit is contained in:
Philip Kristoffersen
2022-05-15 08:19:48 +02:00
committed by GitHub
parent eb819c1357
commit eaa7d8cc34
+3
View File
@@ -9,6 +9,7 @@ use super::{
MyEguiApp,
};
const SECTION_SPACING: f32 = 25.0;
const VERSION: &str = env!("CARGO_PKG_VERSION");
impl MyEguiApp {
pub(crate) fn render_settings(&mut self, ui: &mut egui::Ui) {
@@ -51,6 +52,8 @@ impl MyEguiApp {
{
self.render_amazon_settings(ui);
}
ui.add_space(SECTION_SPACING);
ui.label(format!("Version: {}", VERSION));
});
}