From cafc9995d8150000f24271da83b5741ffd2500df Mon Sep 17 00:00:00 2001 From: jp9000 Date: Wed, 20 Nov 2019 15:46:42 -0800 Subject: [PATCH] UI: Fix wrong icon if recording stopped while paused Fixes pause icon getting stuck if you stream or use replay buffer while recording, pause, then stop recording while paused. The icon would get stuck on the pause icon until all outputs were stopped. --- UI/window-basic-main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/UI/window-basic-main.cpp b/UI/window-basic-main.cpp index 73c2f7ae4..b2469387d 100644 --- a/UI/window-basic-main.cpp +++ b/UI/window-basic-main.cpp @@ -5098,6 +5098,10 @@ inline void OBSBasic::OnDeactivate() if (trayIcon) trayIcon->setIcon(QIcon::fromTheme( "obs-tray", QIcon(":/res/images/obs.png"))); + } else { + if (trayIcon) + trayIcon->setIcon( + QIcon(":/res/images/tray_active.png")); } }