mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-04 10:33:30 +00:00
UI: Move WHIP service to the bottom of the visible list
This commit is contained in:
parent
8981afe5b4
commit
d31d271b43
|
@ -262,12 +262,14 @@ void OBSBasicSettings::SaveStream1Settings()
|
|||
obs_data_set_bool(settings, "bwtest", false);
|
||||
}
|
||||
|
||||
if (whip)
|
||||
if (whip) {
|
||||
obs_data_set_string(settings, "service", "WHIP");
|
||||
obs_data_set_string(settings, "bearer_token",
|
||||
QT_TO_UTF8(ui->key->text()));
|
||||
else
|
||||
} else {
|
||||
obs_data_set_string(settings, "key",
|
||||
QT_TO_UTF8(ui->key->text()));
|
||||
}
|
||||
|
||||
OBSServiceAutoRelease newService = obs_service_create(
|
||||
service_id, "default_service", settings, hotkeyData);
|
||||
|
@ -388,8 +390,8 @@ void OBSBasicSettings::LoadServices(bool showAll)
|
|||
ui->service->addItem(name);
|
||||
|
||||
if (obs_is_output_protocol_registered("WHIP")) {
|
||||
ui->service->insertItem(0, QTStr("WHIP"),
|
||||
QVariant((int)ListOpt::WHIP));
|
||||
ui->service->addItem(QTStr("WHIP"),
|
||||
QVariant((int)ListOpt::WHIP));
|
||||
}
|
||||
|
||||
if (!showAll) {
|
||||
|
|
Loading…
Reference in a new issue