mirror of
https://github.com/djibux/BoilR.git
synced 2026-09-01 14:03:42 +02:00
Show version number in settings (#129)
This commit is contained in:
@@ -9,6 +9,7 @@ use super::{
|
|||||||
MyEguiApp,
|
MyEguiApp,
|
||||||
};
|
};
|
||||||
const SECTION_SPACING: f32 = 25.0;
|
const SECTION_SPACING: f32 = 25.0;
|
||||||
|
const VERSION: &str = env!("CARGO_PKG_VERSION");
|
||||||
|
|
||||||
impl MyEguiApp {
|
impl MyEguiApp {
|
||||||
pub(crate) fn render_settings(&mut self, ui: &mut egui::Ui) {
|
pub(crate) fn render_settings(&mut self, ui: &mut egui::Ui) {
|
||||||
@@ -51,6 +52,8 @@ impl MyEguiApp {
|
|||||||
{
|
{
|
||||||
self.render_amazon_settings(ui);
|
self.render_amazon_settings(ui);
|
||||||
}
|
}
|
||||||
|
ui.add_space(SECTION_SPACING);
|
||||||
|
ui.label(format!("Version: {}", VERSION));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user