EventHandler: Add isGroup bool to create/remove scene events

This commit is contained in:
tt2468 2021-06-16 00:51:24 -07:00
parent aac06b101e
commit 94d7df0bc1

View File

@ -6,6 +6,7 @@ void EventHandler::HandleSceneCreated(obs_source_t *source)
{ {
json eventData; json eventData;
eventData["sceneName"] = obs_source_get_name(source); eventData["sceneName"] = obs_source_get_name(source);
eventData["isGroup"] = obs_source_is_group(source);
_webSocketServer->BroadcastEvent(EventSubscription::Scenes, "SceneCreated", eventData); _webSocketServer->BroadcastEvent(EventSubscription::Scenes, "SceneCreated", eventData);
} }
@ -13,6 +14,7 @@ void EventHandler::HandleSceneRemoved(obs_source_t *source)
{ {
json eventData; json eventData;
eventData["sceneName"] = obs_source_get_name(source); eventData["sceneName"] = obs_source_get_name(source);
eventData["isGroup"] = obs_source_is_group(source);
_webSocketServer->BroadcastEvent(EventSubscription::Scenes, "SceneRemoved", eventData); _webSocketServer->BroadcastEvent(EventSubscription::Scenes, "SceneRemoved", eventData);
} }