UI: Add events for renaming profiles/collections

The events make it more clear when profiles or scene
collections are renamed.
This commit is contained in:
cg2121
2022-03-08 11:17:59 -08:00
committed by Jim
parent 4afafaac6d
commit 748cf32a43
4 changed files with 16 additions and 17 deletions
+2 -7
View File
@@ -276,9 +276,6 @@ void OBSBasic::on_actionRenameSceneCollection_triggered()
return;
}
if (api)
api->on_event(OBS_FRONTEND_EVENT_SCENE_COLLECTION_CHANGING);
oldFile.insert(0, path);
oldFile += ".json";
os_unlink(oldFile.c_str());
@@ -293,10 +290,8 @@ void OBSBasic::on_actionRenameSceneCollection_triggered()
UpdateTitleBar();
RefreshSceneCollections();
if (api) {
api->on_event(OBS_FRONTEND_EVENT_SCENE_COLLECTION_LIST_CHANGED);
api->on_event(OBS_FRONTEND_EVENT_SCENE_COLLECTION_CHANGED);
}
if (api)
api->on_event(OBS_FRONTEND_EVENT_SCENE_COLLECTION_RENAMED);
}
void OBSBasic::on_actionRemoveSceneCollection_triggered()