[chronojump] Better check last version



commit baac778a047713308314da99cd1c9d74e1b2e22a
Author: Xavier de Blas <xaviblas gmail com>
Date:   Fri Jan 19 14:01:05 2018 +0100

    Better check last version

 src/json.cs |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/src/json.cs b/src/json.cs
index 8658296..5a33a27 100644
--- a/src/json.cs
+++ b/src/json.cs
@@ -183,12 +183,19 @@ public class Json
                if(currentVersion != lastVersionPublished)
                        updateStr = "\n\n" + Catalog.GetString("Update software at ") + "www.chronojump.org";
                        */
-                       
-               this.ResultMessage =            
+
+               string str =
                        Catalog.GetString("Installed version is: ") + currentVersion + "\n" + 
                        Catalog.GetString("Last version published: ") + lastVersionPublished;
                        // + updateStr;
                        //TODO: add updateStr again when resolved that a experimental 1.7.0-xxx is more 
advanced than a stable 1.7.0
+
+               if(currentVersion == lastVersionPublished)
+                       str += "\n\n" + Catalog.GetString("Your software is updated!");
+               else
+                       str += "\n\n" + Catalog.GetString("Update software at ") + "www.chronojump.org";
+
+               this.ResultMessage = str;
                
                //ChronojumpUpdated = (currentVersion == ResultMessage);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]