Explorar o código

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.
jp9000 %!s(int64=6) %!d(string=hai) anos
pai
achega
cafc9995d8
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      UI/window-basic-main.cpp

+ 4 - 0
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"));
 	}
 }