MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / setPreviewEnabled

Function setPreviewEnabled

plugins/base/macro-action-obs-settings.cpp:71–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71static void setPreviewEnabled(bool enabled)
72{
73 static const auto enable = [](void *) {
74 obs_frontend_set_preview_enabled(true);
75 };
76 static const auto disable = [](void *) {
77 obs_frontend_set_preview_enabled(false);
78 };
79 obs_queue_task(OBS_TASK_UI, enabled ? enable : disable, nullptr, false);
80}
81
82bool MacroActionOBSSettings::PerformAction()
83{

Callers 1

PerformActionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected