瀏覽代碼

Merge pull request #1869 from cg2121/fix-systray

UI: Fix system tray not working
Jim 6 年之前
父節點
當前提交
b5c20fb924
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      UI/window-basic-main.cpp

+ 1 - 1
UI/window-basic-main.cpp

@@ -6841,7 +6841,7 @@ void OBSBasic::SystemTray(bool firstStarted)
 {
 	if (!QSystemTrayIcon::isSystemTrayAvailable())
 		return;
-	if (!trayIcon)
+	if (!trayIcon && !firstStarted)
 		return;
 
 	bool sysTrayWhenStarted = config_get_bool(GetGlobalConfig(),