mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-07-13 08:44:29 -04:00
UI: Add obs_frontend_add_scene_collection API call
Allows the ability to add a new scene collection via the frontend API. Blocks until the scene collection has been successfully added to ensure synchronization between the calling thread and the UI thread. (Jim: Added detailed description to commit message) Closes obsproject/obs-studio#1232
This commit is contained in:
@@ -167,6 +167,19 @@ struct OBSStudioAPI : obs_frontend_callbacks {
|
||||
}
|
||||
}
|
||||
|
||||
bool obs_frontend_add_scene_collection(
|
||||
const char *name) override
|
||||
{
|
||||
bool success = false;
|
||||
QMetaObject::invokeMethod(main,
|
||||
"AddSceneCollection",
|
||||
WaitConnection(),
|
||||
Q_RETURN_ARG(bool, success),
|
||||
Q_ARG(bool, true),
|
||||
Q_ARG(QString, QT_UTF8(name)));
|
||||
return success;
|
||||
}
|
||||
|
||||
void obs_frontend_get_profiles(
|
||||
std::vector<std::string> &strings) override
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user