UI: Add obs_frontend_open_source_interaction()

Adds a frontend api call to open the interact dialog of a source,
just like the `_properties` and `_filters` functions.
This commit is contained in:
tt2468
2021-12-28 16:50:43 -08:00
committed by Jim
parent 466ba5ae29
commit 47397ce527
7 changed files with 34 additions and 0 deletions

View File

@@ -618,6 +618,12 @@ struct OBSStudioAPI : obs_frontend_callbacks {
Q_ARG(OBSSource, OBSSource(source)));
}
void obs_frontend_open_source_interaction(obs_source_t *source) override
{
QMetaObject::invokeMethod(main, "OpenInteraction",
Q_ARG(OBSSource, OBSSource(source)));
}
char *obs_frontend_get_current_record_output_path(void) override
{
const char *recordOutputPath = main->GetCurrentOutputPath();