UI: Fix preview disabled in studio mode

If OBS is set to minimize to system tray on startup and studio mode is
enabled, the preview would be disabled when showing OBS, if the preview
in non studio mode was disabled.
This commit is contained in:
cg2121 2023-03-04 03:52:21 -06:00 committed by Jim
parent a0a23e8a18
commit 6e22af932d

View file

@ -1941,6 +1941,10 @@ void OBSBasic::OBSInit()
QMetaObject::invokeMethod(this, "EnablePreviewDisplay",
Qt::QueuedConnection,
Q_ARG(bool, previewEnabled));
else if (!previewEnabled && IsPreviewProgramMode())
QMetaObject::invokeMethod(this, "EnablePreviewDisplay",
Qt::QueuedConnection,
Q_ARG(bool, true));
RefreshSceneCollections();
RefreshProfiles();