UI: Check for valid systen tray pointer
Fixes a potential crash that can happen if the system tray is not initialized for whatever reason.
This commit is contained in:
parent
dd68493590
commit
767d534409
1 changed files with 2 additions and 0 deletions
|
|
@ -6866,6 +6866,8 @@ void OBSBasic::SystemTray(bool firstStarted)
|
|||
{
|
||||
if (!QSystemTrayIcon::isSystemTrayAvailable())
|
||||
return;
|
||||
if (!trayIcon)
|
||||
return;
|
||||
|
||||
bool sysTrayWhenStarted = config_get_bool(GetGlobalConfig(),
|
||||
"BasicWindow", "SysTrayWhenStarted");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue