UI: Fix preview state when minimizing to tray
Makes sure preview is properly enabled/disabled when minimizing to tray, when restoring from tray, or when starting the program up minimized to tray
This commit is contained in:
@@ -7180,8 +7180,10 @@ void OBSBasic::IconActivated(QSystemTrayIcon::ActivationReason reason)
|
||||
AddProjectorMenuMonitors(studioProgramProjector, this,
|
||||
SLOT(OpenStudioProgramProjector()));
|
||||
|
||||
if (reason == QSystemTrayIcon::Trigger)
|
||||
if (reason == QSystemTrayIcon::Trigger) {
|
||||
EnablePreviewDisplay(previewEnabled && !isVisible());
|
||||
ToggleShowHide();
|
||||
}
|
||||
}
|
||||
|
||||
void OBSBasic::SysTrayNotify(const QString &text,
|
||||
|
Reference in New Issue
Block a user