UI: Fix bug with uncopied profile import/export files

streamEncoder.json and recordEncoder.json are missing.  Thess files are
generated when the output mode is advanced, and the user modifies
encoder settings.

Closes jp9000/obs-studio#741
This commit is contained in:
shiina424
2016-12-26 15:25:26 +09:00
committed by jp9000
parent e4f32aa54a
commit 36bf5988d2

View File

@@ -481,6 +481,10 @@ void OBSBasic::on_actionImportProfile_triggered()
profileDir + "/basic.ini");
QFile::copy(dir + "/service.json",
profileDir + "/service.json");
QFile::copy(dir + "/streamEncoder.json",
profileDir + "/streamEncoder.json");
QFile::copy(dir + "/recordEncoder.json",
profileDir + "/recordEncoder.json");
RefreshProfiles();
} else {
QMessageBox::information(this,
@@ -524,6 +528,10 @@ void OBSBasic::on_actionExportProfile_triggered()
outputDir + "/basic.ini");
QFile::copy(inputPath + currentProfile + "/service.json",
outputDir + "/service.json");
QFile::copy(inputPath + currentProfile + "/streamEncoder.json",
outputDir + "/streamEncoder.json");
QFile::copy(inputPath + currentProfile + "/recordEncoder.json",
outputDir + "/recordEncoder.json");
}
}
}