diff --git a/UI/window-basic-main.cpp b/UI/window-basic-main.cpp index eb52705a2..a93b21363 100644 --- a/UI/window-basic-main.cpp +++ b/UI/window-basic-main.cpp @@ -7592,12 +7592,11 @@ void OBSBasic::SystemTray(bool firstStarted) if (firstStarted) SystemTrayInit(); - if (!sysTrayWhenStarted && !sysTrayEnabled) { + if (!sysTrayEnabled) { trayIcon->hide(); - } else if ((sysTrayWhenStarted && sysTrayEnabled) || - opt_minimize_tray) { + } else { trayIcon->show(); - if (firstStarted) { + if (firstStarted && (sysTrayWhenStarted || opt_minimize_tray)) { QTimer::singleShot(50, this, SLOT(hide())); EnablePreviewDisplay(false); setVisible(false); @@ -7606,12 +7605,6 @@ void OBSBasic::SystemTray(bool firstStarted) #endif opt_minimize_tray = false; } - } else if (sysTrayEnabled) { - trayIcon->show(); - } else if (!sysTrayEnabled) { - trayIcon->hide(); - } else if (!sysTrayWhenStarted && sysTrayEnabled) { - trayIcon->hide(); } if (isVisible())