[chronojump] On Compujump don't show error message at start



commit 918da8b4fdb5195175ffa1f0bdbc4802336eea97
Author: Xavier de Blas <xaviblas gmail com>
Date:   Sat Jul 8 19:14:08 2017 +0200

    On Compujump don't show error message at start

 src/chronojump.cs |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/src/chronojump.cs b/src/chronojump.cs
index 084d5b1..64cfd1e 100644
--- a/src/chronojump.cs
+++ b/src/chronojump.cs
@@ -546,7 +546,8 @@ public class ChronoJump
 
        protected void readMessageToStart()
        {
-               if(messageToShowOnBoot.Length > 0)
+               //don't show error message at start if Compujump
+               if(messageToShowOnBoot.Length > 0 && ! configChronojump.Compujump)
                {
                        ErrorWindow errorWin;
                        if(chronojumpHasToExit)
@@ -689,7 +690,9 @@ public class ChronoJump
                return true;
        }
        
-       private void on_splash_ended(object o, EventArgs args) {
+       Config configChronojump;
+       private void on_splash_ended(object o, EventArgs args)
+       {
                LogB.Information("splash screen going to END");
                fakeSplashButton.Clicked -= new EventHandler(on_splash_ended);
                if(splashWin != null)
@@ -698,6 +701,10 @@ public class ChronoJump
                        SplashWindow.Hide();
 
                LogB.Information("splash screen ENDED!");
+
+               configChronojump = new Config();
+               configChronojump.Read();
+
                readMessageToStart();
        }
 


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