mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-15 07:44:10 +00:00
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
|
@ -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…
Reference in a new issue