UI: Add scene collection cleanup event to frontend API

This event is called when all scene data has been unloaded.
This commit is contained in:
jp9000 committed 2018-01-03 17:04:03 -08:00
1 parent bf31e1c233
commit 6cd79f8105
2 files changed
+6 -1

No files matched your search

+3
View File
@@ -3343,6 +3343,9 @@ void OBSBasic::ClearSceneData()
obs_enum_sources(cb, nullptr);
if (api)
api->on_event(OBS_FRONTEND_EVENT_SCENE_COLLECTION_CLEANUP);
disableSaving--;
blog(LOG_INFO, "All scene data cleared");