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:
parent
89792bcae9
commit
dff05d9fcc
1 changed files with 3 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue