mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-19 17:49:14 +00:00
UI: Don't show WHIP in stream settings if the protocol isn't registered
This commit is contained in:
parent
e830043851
commit
353a4c860d
|
@ -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…
Reference in a new issue