UI: Clear undo stack in ClearSceneData() instead

Makes more sense to clear it here.
This commit is contained in:
jp9000 2021-04-09 04:19:01 -07:00
parent 0b583260a2
commit e39fa5e902
2 changed files with 2 additions and 2 deletions

View file

@ -554,8 +554,6 @@ void OBSBasic::ChangeSceneCollection()
UpdateTitleBar();
undo_s.clear();
if (api)
api->on_event(OBS_FRONTEND_EVENT_SCENE_COLLECTION_CHANGED);
}

View file

@ -4386,6 +4386,8 @@ void OBSBasic::ClearSceneData()
if (api)
api->on_event(OBS_FRONTEND_EVENT_SCENE_COLLECTION_CLEANUP);
undo_s.clear();
disableSaving--;
blog(LOG_INFO, "All scene data cleared");