From 90a9d1d726117b64c7f1bdade53235426fd523c2 Mon Sep 17 00:00:00 2001 From: Alexander Uhlmann Date: Fri, 2 Dec 2016 19:05:57 +0100 Subject: [PATCH] UI: Fix frontend-api event call for adding scenes Added missing frontend-api event call for AddScene and removed thus obsolete event call in DuplicateSelectedScene. --- UI/window-basic-main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/UI/window-basic-main.cpp b/UI/window-basic-main.cpp index 9580e9b68..bb1512ad3 100644 --- a/UI/window-basic-main.cpp +++ b/UI/window-basic-main.cpp @@ -1719,6 +1719,9 @@ void OBSBasic::AddScene(OBSSource source) blog(LOG_INFO, "User added scene '%s'", obs_source_get_name(source)); } + + if (api) + api->on_event(OBS_FRONTEND_EVENT_SCENE_LIST_CHANGED); } void OBSBasic::RemoveScene(OBSSource source) @@ -2111,8 +2114,6 @@ void OBSBasic::DuplicateSelectedScene() SetCurrentScene(source, true); obs_scene_release(scene); - if (api) - api->on_event(OBS_FRONTEND_EVENT_SCENE_LIST_CHANGED); break; } }