Reset scene switcher state when new scene collection is created

This avoids copying all macros of the previous scene collection to the
newly created one.
This commit is contained in:
WarmUpTill 2023-07-30 00:53:33 +02:00 committed by WarmUpTill
parent 29f810a2a0
commit dcae0e8e8b

View File

@ -688,6 +688,9 @@ static void OBSEvent(enum obs_frontend_event event, void *switcher)
case OBS_FRONTEND_EVENT_SCENE_COLLECTION_CHANGING:
handleSceneCollectionChanging();
break;
case OBS_FRONTEND_EVENT_SCENE_COLLECTION_CLEANUP:
SaveSceneSwitcher(nullptr, false, nullptr);
break;
#endif
default:
break;