Set vertical outputs to enabled
Some checks failed
Push to master / Check Formatting 🔍 (push) Has been cancelled
Push to master / Build Project 🧱 (push) Has been cancelled
Push to master / Create Release 🛫 (push) Has been cancelled

This commit is contained in:
Exeldro 2024-08-03 09:22:08 +02:00
parent 40e3fb1267
commit 429ac1a431
No known key found for this signature in database
GPG Key ID: 97269A83FC715751
2 changed files with 3 additions and 1 deletions

View File

@ -327,6 +327,7 @@ OBSBasicSettings::OBSBasicSettings(QMainWindow *parent) : QDialog(parent)
if (!vertical_outputs)
return;
auto s = obs_data_create();
obs_data_set_bool(s, "enabled", true);
obs_data_set_string(s, "name", outputDialog->outputName.toUtf8().constData());
obs_data_set_string(s, "stream_server", outputDialog->outputServer.toUtf8().constData());
obs_data_set_string(s, "stream_key", outputDialog->outputKey.toUtf8().constData());
@ -942,6 +943,8 @@ void OBSBasicSettings::AddServer(QFormLayout *outputsLayout, obs_data_t *setting
if (!settings)
return;
if (outputs == vertical_outputs)
obs_data_set_bool(settings, "enabled", true);
// Set the info from the output dialog
obs_data_set_string(settings, "name", outputDialog->outputName.toUtf8().constData());
obs_data_set_string(settings, "stream_server", outputDialog->outputServer.toUtf8().constData());

View File

@ -684,7 +684,6 @@ void MultistreamDock::LoadOutput(obs_data_t *output_data, bool vertical)
stop = false;
}
if (stop) {
const char *name2 = obs_data_get_string(output_data, "name");
for (auto it = outputs.begin(); it != outputs.end(); it++) {
if (std::get<std::string>(*it) != name2)