mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-19 17:49:14 +00:00
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:
parent
a0a23e8a18
commit
6e22af932d
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue