[chronojump] Fixed double chronojump opening on compujump



commit a1fed76e9c8efa85fa57045a31125d677304ae83
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Apr 4 10:08:06 2018 +0200

    Fixed double chronojump opening on compujump

 src/chronojump.cs |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)
---
diff --git a/src/chronojump.cs b/src/chronojump.cs
index 8c4742a..64c5717 100644
--- a/src/chronojump.cs
+++ b/src/chronojump.cs
@@ -417,7 +417,6 @@ public class ChronoJump
                        LogB.Error(js.ResultMessage);
                        */
 
-               
                allSQLCallsDoneOnSqliteThingsThread = false;
                        
                //wait until pinging ends (or it's cancelled)
@@ -498,8 +497,7 @@ public class ChronoJump
 
        protected void readMessageToStart()
        {
-               //don't show error message at start if Compujump
-               if(messageToShowOnBoot.Length > 0 && ! configChronojump.Compujump)
+               if(messageToShowOnBoot.Length > 0)
                {
                        if(chronojumpHasToExit)
                        {
@@ -514,7 +512,10 @@ public class ChronoJump
                                }
                                splashWin.ShowButtonClose();
                        } else {
-                               startChronojump(true); //sendLog
+                               if(configChronojump.Compujump)
+                                       startChronojump(false); //don't sendLog
+                               else
+                                       startChronojump(true); //sendLog
                        }
                } else {
                        startChronojump(false);
@@ -611,7 +612,10 @@ public class ChronoJump
        
        protected bool PulseGTK ()
        {
-               if( quitNowCjTwoTimes || needEndSplashWin || ! thread.IsAlive ) {
+               if( quitNowCjTwoTimes || needEndSplashWin || ! thread.IsAlive )
+               {
+                       LogB.Information(string.Format("pulseGTK ending conditions: {0}, {1}, {2}",
+                                               quitNowCjTwoTimes, needEndSplashWin, ! thread.IsAlive));
                        LogB.ThreadEnding();
                        fakeSplashButton.Click();
 


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