[chronojump] removed git hash on the buildVersion display at main gui
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] removed git hash on the buildVersion display at main gui
- Date: Wed, 10 Jun 2020 15:59:33 +0000 (UTC)
commit 1a0f6a37fbab9ac7a570aa971e4ccd58c8a659a8
Author: Xavier de Blas <xaviblas gmail com>
Date: Wed Jun 10 17:59:02 2020 +0200
removed git hash on the buildVersion display at main gui
src/gui/app1/chronojump.cs | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/src/gui/app1/chronojump.cs b/src/gui/app1/chronojump.cs
index a5c74058..c2fd3353 100644
--- a/src/gui/app1/chronojump.cs
+++ b/src/gui/app1/chronojump.cs
@@ -505,9 +505,15 @@ public partial class ChronoJumpWindow
UtilGtk.IconWindow(app1);
string buildVersion = UtilAll.ReadVersionFromBuildInfo();
+ LogB.Information("Build version:" + buildVersion);
+
+ //if buildVersion has eg. 1.9.0-1980-gc4b2941f remove the git hash (only show 1.9.0-1980)
+ string [] buildVersionSplit = buildVersion.Split(new char[] {'-'});
+ if(buildVersionSplit.Length == 3)
+ buildVersion = buildVersionSplit[0] + "-" + buildVersionSplit[1];
+
label_version.Text = buildVersion;
label_version_hidden.Text = buildVersion;
- LogB.Information("Build version:" + buildVersion);
//manage app1 will not be hiding other windows at start
app1Shown = false;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]