[chronojump] Fixed version (DB) duplicated messages on repetitive opening about window



commit 18ec79f2e850907e2b8540ea5a0435bce688694d
Author: Xavier de Blas <xaviblas gmail com>
Date:   Mon Jun 13 18:55:39 2022 +0200

    Fixed version (DB) duplicated messages on repetitive opening about window

 src/gui/app1/chronojump.cs | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/gui/app1/chronojump.cs b/src/gui/app1/chronojump.cs
index c36ed3541..cb84eca88 100644
--- a/src/gui/app1/chronojump.cs
+++ b/src/gui/app1/chronojump.cs
@@ -7884,11 +7884,13 @@ LogB.Debug("mc finished 5");
                if(translator_credits == "translator-credits") 
                        translator_credits = "";
 
+               string versionStr = progVersion;
+
                //DB version
                if(File.Exists(System.IO.Path.Combine(Util.GetDatabaseDir(), "chronojump.db"))) {
                        try {
                                Sqlite.Connect();
-                               progVersion += "\nDB version: " + SqlitePreferences.Select("databaseVersion", 
false);
+                               versionStr += "\nDB version: " + SqlitePreferences.Select("databaseVersion", 
false);
                                Sqlite.DisConnect();
                        }
                        catch {
@@ -7897,7 +7899,7 @@ LogB.Debug("mc finished 5");
                        }
                }
 
-               new About(progVersion, translator_credits);
+               new About(versionStr, translator_credits);
        }
 
        private void on_feedback_closed(object o, EventArgs args)


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