0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 13:08:50 +02:00

UI: Use SaveProjectNow for scene collections

This fixes a bug where scene collections would not properly save when
modifying them.
This commit is contained in:
jp9000 2015-07-09 10:51:27 -07:00
parent 3a974f5086
commit 1efb8491be

View File

@ -161,7 +161,7 @@ void OBSBasic::AddSceneCollection(bool create_new)
if (!GetSceneCollectionName(this, name, file))
return;
SaveProject();
SaveProjectNow();
config_set_string(App()->GlobalConfig(), "Basic", "SceneCollection",
name.c_str());
@ -170,7 +170,7 @@ void OBSBasic::AddSceneCollection(bool create_new)
if (create_new) {
CreateDefaultScene();
}
SaveProject();
SaveProjectNow();
RefreshSceneCollections();
blog(LOG_INFO, "Added scene collection '%s' (%s, %s.json)",
@ -246,7 +246,7 @@ void OBSBasic::on_actionRenameSceneCollection_triggered()
name.c_str());
config_set_string(App()->GlobalConfig(), "Basic", "SceneCollectionFile",
file.c_str());
SaveProject();
SaveProjectNow();
char path[512];
int ret = GetConfigPath(path, 512, "obs-studio/basic/scenes/");
@ -348,7 +348,7 @@ void OBSBasic::ChangeSceneCollection()
return;
}
SaveProject();
SaveProjectNow();
Load(fileName.c_str());
RefreshSceneCollections();