Merge pull request #1869 from cg2121/fix-systray

UI: Fix system tray not working
This commit is contained in:
Jim 2019-05-04 08:28:07 -07:00 committed by GitHub
commit b5c20fb924
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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