From 0567f669c2b4afa11c1797f01924c9ed91da662a Mon Sep 17 00:00:00 2001
From: Nicolas Werner <nicolas.werner@hotmail.de>
Date: Thu, 14 Jan 2021 13:56:22 +0100
Subject: [PATCH] Don't start in tray, if only minimize to tray is enabled

fixes #375
---
 src/main.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main.cpp b/src/main.cpp
index 7a417ae2a..a0b72be79 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -239,7 +239,7 @@ main(int argc, char *argv[])
         // Move the MainWindow to the center
         w.move(screenCenter(w.width(), w.height()));
 
-        if (!settings.lock()->startInTray() && !settings.lock()->tray())
+        if (!(settings.lock()->startInTray() && settings.lock()->tray()))
                 w.show();
 
         QObject::connect(&app, &QApplication::aboutToQuit, &w, [&w]() {
-- 
GitLab