mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-07-19 19:55:16 -04:00
Merge pull request #716 from flash0110/ui_fix-frontend-api-scene-added
UI: Fix frontend-api event call for adding scenes
This commit is contained in:
@@ -1764,6 +1764,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)
|
||||
@@ -2156,8 +2159,6 @@ void OBSBasic::DuplicateSelectedScene()
|
||||
SetCurrentScene(source, true);
|
||||
obs_scene_release(scene);
|
||||
|
||||
if (api)
|
||||
api->on_event(OBS_FRONTEND_EVENT_SCENE_LIST_CHANGED);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user