From 58ce89bbe9bf834996851cc7653c3d0c2064d4db Mon Sep 17 00:00:00 2001 From: jp9000 Date: Tue, 11 Jun 2019 20:22:24 -0700 Subject: [PATCH] UI: Fix tray icon showing up on startup even if off Apparently certain versions of Qt have a bug where the tray icon's internal "visible" variable is set to false despite the fact that it still shows. Calling show() first before calling hide() sets the internal boolean value and fixes the issue with the hide call. --- UI/window-basic-main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/UI/window-basic-main.cpp b/UI/window-basic-main.cpp index 679c43cd9..33a17d845 100644 --- a/UI/window-basic-main.cpp +++ b/UI/window-basic-main.cpp @@ -6817,6 +6817,7 @@ void OBSBasic::SystemTrayInit() trayMenu->addAction(sysTrayReplayBuffer); trayMenu->addAction(exit); trayIcon->setContextMenu(trayMenu); + trayIcon->show(); if (outputHandler && !outputHandler->replayBuffer) sysTrayReplayBuffer->setEnabled(false); -- GitLab