mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-24 10:14:13 -05:00
obs-frontend-api: Fix repeated preview en-/disables not working
This commit is contained in:
@@ -556,8 +556,10 @@ bool OBSStudioAPI::obs_frontend_preview_enabled()
|
||||
|
||||
void OBSStudioAPI::obs_frontend_set_preview_enabled(bool enable)
|
||||
{
|
||||
if (main->previewEnabled != enable) {
|
||||
main->EnablePreviewDisplay(enable);
|
||||
if (enable) {
|
||||
main->EnablePreview();
|
||||
} else {
|
||||
main->DisablePreview();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user