UI: Fix tray icon menu handling on macOS

This commit is contained in:
PatTheMav 2020-11-12 23:40:55 +01:00
parent 84b2558995
commit 8110b8bd65
No known key found for this signature in database
GPG Key ID: CEFD5D83C12A66B3

View File

@ -7630,10 +7630,12 @@ void OBSBasic::IconActivated(QSystemTrayIcon::ActivationReason reason)
AddProjectorMenuMonitors(studioProgramProjector, this,
SLOT(OpenStudioProgramProjector()));
#ifndef __APPLE__
if (reason == QSystemTrayIcon::Trigger) {
EnablePreviewDisplay(previewEnabled && !isVisible());
ToggleShowHide();
}
#endif
}
void OBSBasic::SysTrayNotify(const QString &text,