UI: Don't show WHIP in stream settings if the protocol isn't registered
This commit is contained in:
parent
e830043851
commit
353a4c860d
1 changed files with 4 additions and 1 deletions
|
|
@ -387,7 +387,10 @@ void OBSBasicSettings::LoadServices(bool showAll)
|
|||
for (QString &name : names)
|
||||
ui->service->addItem(name);
|
||||
|
||||
ui->service->insertItem(0, QTStr("WHIP"), QVariant((int)ListOpt::WHIP));
|
||||
if (obs_is_output_protocol_registered("WHIP")) {
|
||||
ui->service->insertItem(0, QTStr("WHIP"),
|
||||
QVariant((int)ListOpt::WHIP));
|
||||
}
|
||||
|
||||
if (!showAll) {
|
||||
ui->service->addItem(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue