From 4191b1bf9ce76f511639d4b5c4ced061c3fa0d7a Mon Sep 17 00:00:00 2001 From: Songtronix Date: Fri, 18 Oct 2019 15:51:07 +0200 Subject: [PATCH] change(menu): display version with hash and date --- voxygen/src/menu/main/ui.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/voxygen/src/menu/main/ui.rs b/voxygen/src/menu/main/ui.rs index 854d92383d..3882952679 100644 --- a/voxygen/src/menu/main/ui.rs +++ b/voxygen/src/menu/main/ui.rs @@ -179,7 +179,7 @@ impl MainMenuUi { fn update_layout(&mut self, global_state: &mut GlobalState) -> Vec { let mut events = Vec::new(); let (ref mut ui_widgets, ref mut _tooltip_manager) = self.ui.set_widgets(); - let version = env!("CARGO_PKG_VERSION"); + let version = format!("{}-{}/{}", env!("CARGO_PKG_VERSION"), common::util::GIT_HASH, common::util::GIT_DATE); const TEXT_COLOR: Color = Color::Rgba(1.0, 1.0, 1.0, 1.0); const TEXT_COLOR_2: Color = Color::Rgba(1.0, 1.0, 1.0, 0.2); @@ -224,8 +224,8 @@ impl MainMenuUi { .mid_top_with_margin_on(self.ids.banner_top, 40.0) .color(Some(Color::Rgba(1.0, 1.0, 1.0, 0.95))) .set(self.ids.v_logo, ui_widgets); - - Text::new(version) + // Version displayed top right corner + Text::new(&version) .top_right_with_margins_on(ui_widgets.window, 5.0, 5.0) .font_size(14) .font_id(self.fonts.cyri)