提交 ba75dd6a 编写于 作者: J jp9000

UI: Disable Youtube bandwidth test (for now)

Due to reports that the bandwidth test is randomly causing community
strikes on Youtube (likely due to bad automatic detection), the
bandwidth test will be disabled for Youtube until the Youtube API is
implemented.
上级 9d4be5e5
......@@ -416,6 +416,7 @@ void AutoConfigStreamPage::UpdateKeyLink()
{
bool custom = ui->streamType->currentIndex() == 1;
QString serviceName = ui->service->currentText();
bool isYoutube = false;
if (custom)
serviceName = "";
......@@ -433,6 +434,15 @@ void AutoConfigStreamPage::UpdateKeyLink()
text += "\">";
text += QTStr("Basic.AutoConfig.StreamPage.StreamKey.LinkToSite");
text += "</a>";
isYoutube = true;
}
if (isYoutube) {
ui->doBandwidthTest->setChecked(false);
ui->doBandwidthTest->setEnabled(false);
} else {
ui->doBandwidthTest->setEnabled(true);
}
ui->streamKeyLabel->setText(text);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册