[chronojump] Important fix to just-published 2.0 :/
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Important fix to just-published 2.0 :/
- Date: Thu, 9 Jul 2020 10:03:59 +0000 (UTC)
commit e5731e87e66460983912f6aec255d2d9662e0db9
Author: Xavier de Blas <xaviblas gmail com>
Date: Thu Jul 9 12:03:29 2020 +0200
Important fix to just-published 2.0 :/
src/gui/app1/chronojump.cs | 1 +
src/json/json.cs | 4 +++-
2 files changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/gui/app1/chronojump.cs b/src/gui/app1/chronojump.cs
index a7485fd6..f1525cc0 100644
--- a/src/gui/app1/chronojump.cs
+++ b/src/gui/app1/chronojump.cs
@@ -6618,6 +6618,7 @@ LogB.Debug("mc finished 5");
Json jsPing;
private void pingDo(bool showInWindow)
{
+ LogB.Information("version at pingDo:" + UtilAll.ReadVersionFromBuildInfo());
jsPing = new Json();
bool success = jsPing.Ping(UtilAll.GetOS(), UtilAll.ReadVersionFromBuildInfo(),
preferences.machineID);
diff --git a/src/json/json.cs b/src/json/json.cs
index 0cb5cfed..5adc31d9 100644
--- a/src/json/json.cs
+++ b/src/json/json.cs
@@ -214,7 +214,9 @@ public class Json
// Creates the json object
JsonObject json = new JsonObject();
json.Add("os_version", osVersion);
- json.Add("cj_version", cjVersion.Substring(0,11)); //send only the first 11 chars
+ if(cjVersion.Length > 11)
+ cjVersion = cjVersion.Substring(0,11); //send only the first 11 chars, but not if
version is just 2.0.0, see: buildInfo.cs
+ json.Add("cj_version", cjVersion);
json.Add("machine_id", machineID);
// Converts it to a String
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]