[chronojump] splasWin is killed/hidden later



commit 852853d2b01b727d4728c171145bc2c3cd343867
Author: Xavier de Blas <xaviblas gmail com>
Date:   Thu Aug 27 21:27:47 2020 +0100

    splasWin is killed/hidden later

 src/gui/app1/chronojump.cs | 19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)
---
diff --git a/src/gui/app1/chronojump.cs b/src/gui/app1/chronojump.cs
index 8161f090..8cf30a9a 100644
--- a/src/gui/app1/chronojump.cs
+++ b/src/gui/app1/chronojump.cs
@@ -760,15 +760,6 @@ public partial class ChronoJumpWindow
                //done after app1.Show in order to be able to gather the colors
                doLabelsContrast(configChronojump.PersonWinHide);
 
-               if(splashWin != null) {
-                       LogB.Information("Destroying splashWin");
-                       splashWin.Destroy();
-               }
-               else {
-                       LogB.Information("Hiding splashWin");
-                       SplashWindow.Hide();
-               }
-
                if(needToShowChronopicRegisterWindow)
                {
                        LogB.Information("Show chronopic resgister win");
@@ -778,6 +769,16 @@ public partial class ChronoJumpWindow
                if(! showSendLog && notebook_sup.CurrentPage == Convert.ToInt32(notebook_sup_pages.START))
                        new ChronojumpLogo (drawingarea_chronojump_logo, viewport_chronojump_logo, 
preferences.logoAnimatedShow);
 
+               //done at the end to ensure main window is shown
+               if(splashWin != null) {
+                       LogB.Information("Destroying splashWin");
+                       splashWin.Destroy();
+               }
+               else {
+                       LogB.Information("Hiding splashWin");
+                       SplashWindow.Hide();
+               }
+
                LogB.Information("Chronojump window started");
        }
 


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