From a63f75c4ffad0514d297b79ee9489015b626d0f8 Mon Sep 17 00:00:00 2001
From: Edric Milaret <edric.ladent-milaret@savoirfairelinux.com>
Date: Thu, 8 Sep 2016 11:43:05 -0400
Subject: [PATCH] hide the mainwindow when start minimized has been checked

This should have been done in the first place. This is the
convention on Windows when we start an application minimized
it should not be displayed on taskbar but only as an icon in
the notification area.

Change-Id: If867e70bfa48be0db3ce6f55ca63b9a9f91bc401
Tuleap: #760
---
 main.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/main.cpp b/main.cpp
index fb4e9ed..f269fa8 100644
--- a/main.cpp
+++ b/main.cpp
@@ -143,8 +143,10 @@ main(int argc, char *argv[])
 
     if (not startMinimized)
         MainWindow::instance().show();
-    else
+    else {
         MainWindow::instance().showMinimized();
+        MainWindow::instance().hide();
+    }
 
     MainWindow::instance().createThumbBar();
 
-- 
GitLab