From b3466a7dd84d5a653691a26fe428c62c248bbc1a Mon Sep 17 00:00:00 2001 From: PatTheMav Date: Sat, 14 Sep 2024 17:31:03 +0200 Subject: [PATCH] UI: Fix outdated scene collection and profile method names --- UI/api-interface.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/UI/api-interface.cpp b/UI/api-interface.cpp index ee6dae7da87d47..82b5d16a13c0be 100644 --- a/UI/api-interface.cpp +++ b/UI/api-interface.cpp @@ -202,7 +202,7 @@ struct OBSStudioAPI : obs_frontend_callbacks { bool obs_frontend_add_scene_collection(const char *name) override { bool success = false; - QMetaObject::invokeMethod(main, "NewSceneCollection", + QMetaObject::invokeMethod(main, "CreateNewSceneCollection", WaitConnection(), Q_RETURN_ARG(bool, success), Q_ARG(QString, QT_UTF8(name))); @@ -252,13 +252,13 @@ struct OBSStudioAPI : obs_frontend_callbacks { void obs_frontend_create_profile(const char *name) override { - QMetaObject::invokeMethod(main, "NewProfile", + QMetaObject::invokeMethod(main, "CreateNewProfile", Q_ARG(QString, name)); } void obs_frontend_duplicate_profile(const char *name) override { - QMetaObject::invokeMethod(main, "DuplicateProfile", + QMetaObject::invokeMethod(main, "CreateDuplicateProfile", Q_ARG(QString, name)); }