mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-03-06 07:36:12 -05:00
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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user